Skip to content

notificationHandler

1
function notificationHandler(connection: WebSocketConnection | WebhookConnection, payload: BasePayload<SubscriptionTypes>): Promise<void>

Handles a subscription notification in a connection excluding the conduit.

Parameters

ParameterTypeDescription
connectionWebSocketConnection | WebhookConnectionThe connection to handle the notification in.
payloadBasePayload<SubscriptionTypes>The payload of the notification.

Returns

Promise<void>

Source

twitchfy/packages/eventsub/src/util/notificationHandler.ts:13