Fix build errors

This commit is contained in:
49lf
2024-04-12 16:38:47 -04:00
parent 25b599d3e7
commit d6ae23d881
2 changed files with 4 additions and 6 deletions

View File

@ -5,10 +5,8 @@ import {
ConnectingType,
ConnectingTypeGroup,
DisconnectingType,
engineCommandManager,
EngineCommandManagerEvents,
EngineConnectionEvents,
EngineConnectionState,
EngineConnectionStateType,
ErrorType,
initialConnectingTypeGroupState,

View File

@ -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,