PrivateLivestreamSocket
PrivateLivestreamSocket
contains methods to interact with the WebSocket in relation to private livestream events.
Internally, Kient uses the Pusher channels private-livestream_${livestreamId}
and private-livestream-updated.${livestreamId}
.
Methods
Authentication Required async listen(livestreamId)
Listens to a specific livestream and emits related events.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
livestreamId | string | number | true | The ID of the livestream to listen to |
Returns
Promise<void>
async disconnect(livestreamId)
Disconnects from a specific livestream.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
livestreamId | string | number | true | The ID of the livestream to disconnect from |
Returns
Promise<void>