Skip to content

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.

ParameterTypeRequiredDefaultDescription
livestreamIdstring | numbertrueThe ID of the livestream to listen to

Returns

Promise<void>


async disconnect(livestreamId)

Disconnects from a specific livestream.

ParameterTypeRequiredDefaultDescription
livestreamIdstring | numbertrueThe ID of the livestream to disconnect from

Returns

Promise<void>