EventSubEventEmitter
The EventSub Event Emitter of any type of connection.
Extends
AsyncEventEmitter
<U
>
Extended by
Type parameters
Type parameter |
---|
U extends WebhookEvents | WebSocketEvents | ConduitEvents |
Constructors
new EventSubEventEmitter()
Builds up a EventSub Event Emitter.
Returns
Overrides
AsyncEventEmitter<U>.constructor
Source
twitchfy/packages/eventsub/src/structures/BaseConnection.ts:20
Methods
addListener()
Type parameters
Type parameter |
---|
K extends string | number | symbol |
Parameters
Parameter | Type |
---|---|
eventName | K |
listener | (…args : K extends keyof AsyncEventEmitterPredefinedEvents ? AsyncEventEmitterPredefinedEvents [K <K >] : U [K ]) => void |
Returns
this
Inherited from
AsyncEventEmitter.addListener
Source
twitchfy/node_modules/@vladfrangu/async_event_emitter/dist/index.d.ts:7
emit()
Type parameters
Type parameter |
---|
K extends string | number | symbol |
Parameters
Parameter | Type |
---|---|
eventName | K |
…args | K extends keyof AsyncEventEmitterPredefinedEvents ? AsyncEventEmitterPredefinedEvents [K <K >] : U [K ] |
Returns
boolean
Inherited from
AsyncEventEmitter.emit
Source
twitchfy/node_modules/@vladfrangu/async_event_emitter/dist/index.d.ts:17
eventNames()
Returns
(keyof AsyncEventEmitterPredefinedEvents | keyof U
)[]
Inherited from
AsyncEventEmitter.eventNames
Source
twitchfy/node_modules/@vladfrangu/async_event_emitter/dist/index.d.ts:21
getMaxListeners()
Returns
number
Inherited from
AsyncEventEmitter.getMaxListeners
Source
twitchfy/node_modules/@vladfrangu/async_event_emitter/dist/index.d.ts:14
listenerCount()
Type parameters
Type parameter |
---|
K extends string | number | symbol |
Parameters
Parameter | Type |
---|---|
eventName | K |
Returns
number
Inherited from
AsyncEventEmitter.listenerCount
Source
twitchfy/node_modules/@vladfrangu/async_event_emitter/dist/index.d.ts:18
listeners()
Type parameters
Type parameter |
---|
K extends string | number | symbol |
Parameters
Parameter | Type |
---|---|
eventName | K |
Returns
(…args
: U
[keyof U
]) => Awaitable
<void
>[]
Inherited from
AsyncEventEmitter.listeners
Source
twitchfy/node_modules/@vladfrangu/async_event_emitter/dist/index.d.ts:15
off()
Type parameters
Type parameter |
---|
K extends string | number | symbol |
Parameters
Parameter | Type |
---|---|
eventName | K |
listener | (…args : K extends keyof AsyncEventEmitterPredefinedEvents ? AsyncEventEmitterPredefinedEvents [K <K >] : U [K ]) => void |
Returns
this
Inherited from
AsyncEventEmitter.off
Source
twitchfy/node_modules/@vladfrangu/async_event_emitter/dist/index.d.ts:11
on()
Type parameters
Type parameter |
---|
K extends string | number | symbol |
Parameters
Parameter | Type |
---|---|
eventName | K |
listener | (…args : K extends keyof AsyncEventEmitterPredefinedEvents ? AsyncEventEmitterPredefinedEvents [K <K >] : U [K ]) => void |
Returns
this
Inherited from
AsyncEventEmitter.on
Source
twitchfy/node_modules/@vladfrangu/async_event_emitter/dist/index.d.ts:8
once()
Type parameters
Type parameter |
---|
K extends string | number | symbol |
Parameters
Parameter | Type |
---|---|
eventName | K |
listener | (…args : K extends keyof AsyncEventEmitterPredefinedEvents ? AsyncEventEmitterPredefinedEvents [K <K >] : U [K ]) => void |
Returns
this
Inherited from
AsyncEventEmitter.once
Source
twitchfy/node_modules/@vladfrangu/async_event_emitter/dist/index.d.ts:9
prependListener()
Type parameters
Type parameter |
---|
K extends string | number | symbol |
Parameters
Parameter | Type |
---|---|
eventName | K |
listener | (…args : K extends keyof AsyncEventEmitterPredefinedEvents ? AsyncEventEmitterPredefinedEvents [K <K >] : U [K ]) => void |
Returns
this
Inherited from
AsyncEventEmitter.prependListener
Source
twitchfy/node_modules/@vladfrangu/async_event_emitter/dist/index.d.ts:19
prependOnceListener()
Type parameters
Type parameter |
---|
K extends string | number | symbol |
Parameters
Parameter | Type |
---|---|
eventName | K |
listener | (…args : K extends keyof AsyncEventEmitterPredefinedEvents ? AsyncEventEmitterPredefinedEvents [K <K >] : U [K ]) => void |
Returns
this
Inherited from
AsyncEventEmitter.prependOnceListener
Source
twitchfy/node_modules/@vladfrangu/async_event_emitter/dist/index.d.ts:20
rawListeners()
Type parameters
Type parameter |
---|
K extends string | number | symbol |
Parameters
Parameter | Type |
---|---|
eventName | K |
Returns
Listener
<U
[keyof U
]>[]
Inherited from
AsyncEventEmitter.rawListeners
Source
twitchfy/node_modules/@vladfrangu/async_event_emitter/dist/index.d.ts:16
removeAllListeners()
Type parameters
Type parameter |
---|
K extends string | number | symbol |
Parameters
Parameter | Type |
---|---|
event ? | K |
Returns
this
Inherited from
AsyncEventEmitter.removeAllListeners
Source
twitchfy/node_modules/@vladfrangu/async_event_emitter/dist/index.d.ts:12
removeListener()
Type parameters
Type parameter |
---|
K extends string | number | symbol |
Parameters
Parameter | Type |
---|---|
eventName | K |
listener | (…args : K extends keyof AsyncEventEmitterPredefinedEvents ? AsyncEventEmitterPredefinedEvents [K <K >] : U [K ]) => void |
Returns
this
Inherited from
AsyncEventEmitter.removeListener
Source
twitchfy/node_modules/@vladfrangu/async_event_emitter/dist/index.d.ts:10
setMaxListeners()
Parameters
Parameter | Type |
---|---|
n | number |
Returns
this
Inherited from
AsyncEventEmitter.setMaxListeners
Source
twitchfy/node_modules/@vladfrangu/async_event_emitter/dist/index.d.ts:13
waitForAllListenersToComplete()
Returns
Promise
<boolean
>
Inherited from
AsyncEventEmitter.waitForAllListenersToComplete
Source
twitchfy/node_modules/@vladfrangu/async_event_emitter/dist/index.d.ts:22
listenerCount()
Type parameters
Type parameter | Value |
---|---|
Emitter extends AsyncEventEmitter <any , any > | - |
EventNames | Emitter extends AsyncEventEmitter <Events , Events > ? Events : never |
EventName extends PropertyKey | EventNames extends never ? string | symbol : keyof EventNames |
Parameters
Parameter | Type |
---|---|
emitter | Emitter |
eventName | keyof AsyncEventEmitterPredefinedEvents | EventName |
Returns
number
Inherited from
AsyncEventEmitter.listenerCount
Source
twitchfy/node_modules/@vladfrangu/async_event_emitter/dist/index.d.ts:25
on()
Type parameters
Type parameter | Value |
---|---|
Emitter extends AsyncEventEmitter <any , any > | - |
EventNames extends object | Emitter extends AsyncEventEmitter <Events , any > ? Events : Record <PropertyKey , unknown []> |
EventName extends PropertyKey | keyof AsyncEventEmitterPredefinedEvents | keyof EventNames |
EventResult extends unknown [] | EventNames extends keyof AsyncEventEmitterPredefinedEvents ? AsyncEventEmitterPredefinedEvents [EventName ] : EventNames [EventName ] |
Parameters
Parameter | Type |
---|---|
emitter | Emitter |
eventName | EventName |
options ? | AbortableMethods |
Returns
AsyncGenerator
<EventResult
, void
, unknown
>
Inherited from
AsyncEventEmitter.on
Source
twitchfy/node_modules/@vladfrangu/async_event_emitter/dist/index.d.ts:29
once()
Type parameters
Type parameter | Value |
---|---|
Emitter extends AsyncEventEmitter <any , any > | - |
EventNames extends object | Emitter extends AsyncEventEmitter <Events , any > ? Events : Record <PropertyKey , unknown []> |
EventName extends PropertyKey | keyof AsyncEventEmitterPredefinedEvents | keyof EventNames |
EventResult extends unknown [] | EventNames extends keyof AsyncEventEmitterPredefinedEvents ? AsyncEventEmitterPredefinedEvents [EventName ] : EventNames [EventName ] |
Parameters
Parameter | Type |
---|---|
emitter | Emitter |
eventName | EventName |
options ? | AbortableMethods |
Returns
Promise
<EventResult
>
Inherited from
AsyncEventEmitter.once
Source
twitchfy/node_modules/@vladfrangu/async_event_emitter/dist/index.d.ts:27