Event that fires when the stream is connected to the server and ready to receive commands.
The car and the environment are not yet loaded at this point.
Emits
CustomEvent
of type connected with detail { sessionId: DeckHtmlAttributes["session-id"] },
where sessionId is the ID of the 3D streaming session that has been established.
Example
.addEventListener('connected', (event) => console.log("The app has just connected to the stream and content has not been loaded yet. The ID of the streaming session is", event.detail.sessionId) )
Event that fires when the stream is connected to the server and ready to receive commands. The car and the environment are not yet loaded at this point.
Emits
CustomEvent of type
connectedwith detail{ sessionId: DeckHtmlAttributes["session-id"] }, wheresessionIdis the ID of the 3D streaming session that has been established.Example