Skip to main content
Deno 2 is finally here 🎉️
Learn more
interface INotifierCallbacks
import { type INotifierCallbacks } from "https://deno.land/x/sptaki@1.2.0/models/spt/callbacks/mod.ts";

Methods

sendNotification(
sessionID: string,
req: any,
resp: any,
data: any,
): void

If we don't have anything to send, it's ok to not send anything back because notification requests can be long-polling. In fact, we SHOULD wait until we actually have something to send because otherwise we'd spam the client and the client would abort the connection due to spam.

getNotifier(
url: string,
info: any,
sessionID: string,
): IGetBodyResponseData<any[]>
createNotifierChannel(
url: string,
sessionID: string,
): IGetBodyResponseData<INotifierChannel>
selectProfile(
url: string,
sessionID: string,
): IGetBodyResponseData<any>
notify(
url: string,
info: any,
sessionID: string,
): string