Remove EventTarget from EngineConnection (#315)
Signed-off-by: Paul R. Tagliamonte <paul@kittycad.io>
This commit is contained in:
@ -49,7 +49,7 @@ type WebSocketResponse = Models['WebSocketResponses_type']
|
|||||||
// EngineConnection encapsulates the connection(s) to the Engine
|
// EngineConnection encapsulates the connection(s) to the Engine
|
||||||
// for the EngineCommandManager; namely, the underlying WebSocket
|
// for the EngineCommandManager; namely, the underlying WebSocket
|
||||||
// and WebRTC connections.
|
// and WebRTC connections.
|
||||||
export class EngineConnection extends EventTarget {
|
export class EngineConnection {
|
||||||
websocket?: WebSocket
|
websocket?: WebSocket
|
||||||
pc?: RTCPeerConnection
|
pc?: RTCPeerConnection
|
||||||
lossyDataChannel?: RTCDataChannel
|
lossyDataChannel?: RTCDataChannel
|
||||||
@ -84,7 +84,6 @@ export class EngineConnection extends EventTarget {
|
|||||||
onClose?: (engineConnection: EngineConnection) => void
|
onClose?: (engineConnection: EngineConnection) => void
|
||||||
onNewTrack?: (track: NewTrackArgs) => void
|
onNewTrack?: (track: NewTrackArgs) => void
|
||||||
}) {
|
}) {
|
||||||
super()
|
|
||||||
this.url = url
|
this.url = url
|
||||||
this.token = token
|
this.token = token
|
||||||
this.ready = false
|
this.ready = false
|
||||||
|
Reference in New Issue
Block a user