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 differing slightly in its detail depending on if a cloud AVE or local AVE is used.
Example: Cloud AVE (default flow)
When connecting to a cloud instance, the detail will contain a sessionId of the
established streaming session.
.addEventListener('connected', (event) => { if (event.detail.sessionId) { console.log("Connected via session token. Session ID:", event.detail.sessionId); } })
Example: Local AVE
When connecting to a local AVE via setConnection, the detail will contain a channelName the signaling channel name.
.addEventListener('connected', (event) => { if (event.detail.channelName) { console.log("Connected to local AVE. Channel name:", event.detail.channelName); } })
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
connecteddiffering slightly in itsdetaildepending on if a cloud AVE or local AVE is used.Example: Cloud AVE (default flow)
When connecting to a cloud instance, the
detailwill contain asessionIdof the established streaming session.Example: Local AVE
When connecting to a local AVE via
setConnection, thedetailwill contain achannelNamethe signaling channel name.