Remove EventTarget from EngineConnection (#315)

Signed-off-by: Paul R. Tagliamonte <paul@kittycad.io>
This commit is contained in:
Paul Tagliamonte
2023-08-24 10:46:02 -04:00
committed by GitHub
parent afd2b507ef
commit a0730ded4e

View File

@ -49,7 +49,7 @@ type WebSocketResponse = Models['WebSocketResponses_type']
// EngineConnection encapsulates the connection(s) to the Engine
// for the EngineCommandManager; namely, the underlying WebSocket
// and WebRTC connections.
export class EngineConnection extends EventTarget {
export class EngineConnection {
websocket?: WebSocket
pc?: RTCPeerConnection
lossyDataChannel?: RTCDataChannel
@ -84,7 +84,6 @@ export class EngineConnection extends EventTarget {
onClose?: (engineConnection: EngineConnection) => void
onNewTrack?: (track: NewTrackArgs) => void
}) {
super()
this.url = url
this.token = token
this.ready = false