Fix build errors
This commit is contained in:
@ -5,10 +5,8 @@ import {
|
||||
ConnectingType,
|
||||
ConnectingTypeGroup,
|
||||
DisconnectingType,
|
||||
engineCommandManager,
|
||||
EngineCommandManagerEvents,
|
||||
EngineConnectionEvents,
|
||||
EngineConnectionState,
|
||||
EngineConnectionStateType,
|
||||
ErrorType,
|
||||
initialConnectingTypeGroupState,
|
||||
|
||||
@ -1205,7 +1205,7 @@ export class EngineCommandManager extends EventTarget {
|
||||
|
||||
// When the EngineConnection starts a connection, we want to register
|
||||
// callbacks into the WebSocket/PeerConnection.
|
||||
engineConnection.websocket?.addEventListener('message', (event) => {
|
||||
engineConnection.websocket?.addEventListener('message', ((event) => {
|
||||
if (event.data instanceof ArrayBuffer) {
|
||||
// If the data is an ArrayBuffer, it's the result of an export command,
|
||||
// because in all other cases we send JSON strings. But in the case of
|
||||
@ -1236,9 +1236,7 @@ export class EngineCommandManager extends EventTarget {
|
||||
this.handleFailedModelingCommand(message.request_id, message)
|
||||
}
|
||||
}
|
||||
)
|
||||
}) as EventListener
|
||||
)
|
||||
}) as EventListener)
|
||||
|
||||
this.engineConnection.addEventListener(EngineConnectionEvents.NewTrack, (({
|
||||
detail: { mediaStream },
|
||||
@ -1255,7 +1253,9 @@ export class EngineCommandManager extends EventTarget {
|
||||
}) as EventListener)
|
||||
|
||||
this.engineConnection?.connect()
|
||||
}))
|
||||
}
|
||||
|
||||
handleResize({
|
||||
streamWidth,
|
||||
streamHeight,
|
||||
|
||||
Reference in New Issue
Block a user