cleanup
This commit is contained in:
@@ -13,6 +13,7 @@ export class WebRtcChannelCaster extends MessageEmitter implements JsonChannelCa
|
||||
constructor(
|
||||
private channel: JsonChannelCaster,
|
||||
{onOpen}:Partial<{onOpen: Function}> = {},
|
||||
// @ts-ignore
|
||||
private ctx: RemoteDeviceManagerCtx
|
||||
) {
|
||||
super();
|
||||
@@ -144,6 +145,7 @@ export class WebRtcChannelSummon extends MessageEmitter implements JsonChannelSu
|
||||
};
|
||||
this.peer.ondatachannel = (event) => {
|
||||
if (event.channel.label === 'video') {
|
||||
// @ts-ignore
|
||||
this.videoChannel = event.channel;
|
||||
} else if (event.channel.label === 'json') {
|
||||
this.dataChannel = event.channel;
|
||||
|
||||
Reference in New Issue
Block a user