ConduitSubscriptionCallbackManager
The callback manager for a ConduitSubscription.
Type parameters
| Type parameter |
|---|
T extends SubscriptionTypes |
Constructors
new ConduitSubscriptionCallbackManager()
1new ConduitSubscriptionCallbackManager<T>(conduit: Conduit): ConduitSubscriptionCallbackManager<T>Parameters
| Parameter | Type |
|---|---|
conduit | Conduit |
Returns
ConduitSubscriptionCallbackManager<T>
Source
twitchfy/packages/eventsub/src/structures/ConduitSubscriptionCallbackManager.ts:21
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
conduit | readonly | Conduit | The Conduit that created this manager. |
Methods
add()
1add(callback: ConduitSubscriptionCallback<T>): thisAdds a callback to the manager.
Parameters
| Parameter | Type | Description |
|---|---|---|
callback | ConduitSubscriptionCallback<T> | The callback to add. |
Returns
this
The manager.
Source
twitchfy/packages/eventsub/src/structures/ConduitSubscriptionCallbackManager.ts:33
execute()
1execute(message: SubscriptionMessages<ConnectionTypes>[T]): Promise<void>Executes all the callbacks with the message.
Parameters
| Parameter | Type | Description |
|---|---|---|
message | SubscriptionMessages<ConnectionTypes>[T] | The message to execute the callbacks with. |
Returns
Promise<void>
Source
twitchfy/packages/eventsub/src/structures/ConduitSubscriptionCallbackManager.ts:45