Client
The client used to create connections. You can create connections without this client.
Constructors
new Client()
1new Client(): ClientBuilds up a new client.
Returns
Source
twitchfy/packages/eventsub/src/structures/Client.ts:13
Methods
createWebSocketConnection()
1createWebSocketConnection(options: WebSocketConnectionOptions): WebSocketConnectionCreates 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()
1createWebhookConnection(options: WebhookConnectionOptions, server: Express): WebhookConnectionCreates 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.