BaseStream
The base class representing an stream structure.
Extends
Base
<T
,K
>
Type parameters
Type parameter | Value |
---|---|
T extends SubscriptionTypes | - |
K extends ConnectionTypes | ConnectionTypes |
Constructors
new BaseStream()
1new BaseStream<T, K>(2 connection: K,3 subscription: SubscriptionType<T, K>,4data: BaseStreamData): BaseStream<T, K>
Builds up a BaseStream.
Parameters
Parameter | Type | Description |
---|---|---|
connection | K | The EventSub connection used. |
subscription | SubscriptionType <T , K > | The subscription which trigger this message. |
data | BaseStreamData | The event data received with the subscription. |
Returns
BaseStream
<T
, K
>
Overrides
Source
twitchfy/packages/eventsub/src/structures/messages/BaseStream.ts:32
Properties
Property | Modifier | Type | Description | Inherited from |
---|---|---|---|---|
connection | readonly | K | The EventSub connection used. | Base .connection |
id | readonly | string | The ID of the stream. | - |
startedAt | readonly | Date | The Date object when the stream started. | - |
subscription | readonly | SubscriptionType <T , K > | The subscription which trigger this message. | Base .subscription |
type | readonly | StreamTypes | The type of the stream. Currently, it can only be ‘live’. | - |