Client
The client used to create connections. You can create connections without this client.
Constructors
new Client()
Builds up a new client.
Returns
Source
twitchfy/packages/eventsub/src/structures/Client.ts:13
Methods
createWebSocketConnection()
Creates a new WebSocket connection.
Parameters
Parameter | Type | Description |
---|---|---|
options | WebSocketConnectionOptions | The options for building up the WebSocket connection. |
Returns
The WebSocket connection.
Source
twitchfy/packages/eventsub/src/structures/Client.ts:20
createWebhookConnection()
Creates a new Webhook connection.
Parameters
Parameter | Type | Description |
---|---|---|
options | WebhookConnectionOptions | The options for building up the Webhook connection. |
server | Express | The express server to use for the Webhook connection. |
Returns
The Webhook connection.