Event that fires when the stream is disconnected.
CustomEvent of type disconnected with detail { reason: DeckDisconnectedEventReason }.
disconnected
{ reason: DeckDisconnectedEventReason }
.addEventListener('disconnected', (event) => console.log("The session was disconnected with reason", event.detail.reason)) Copy
.addEventListener('disconnected', (event) => console.log("The session was disconnected with reason", event.detail.reason))
Event that fires when the stream is disconnected.
Emits
CustomEvent of type
disconnectedwith detail{ reason: DeckDisconnectedEventReason }.Example