notificationHandler
1function notificationHandler(connection: WebSocketConnection | WebhookConnection, payload: BasePayload<SubscriptionTypes>): Promise<void>
Handles a subscription notification in a connection excluding the conduit.
Parameters
Parameter | Type | Description |
---|---|---|
connection | WebSocketConnection | WebhookConnection | The connection to handle the notification in. |
payload | BasePayload <SubscriptionTypes > | The payload of the notification. |
Returns
Promise
<void
>
Source
twitchfy/packages/eventsub/src/util/notificationHandler.ts:13