Fix send message webrtc
This commit is contained in:
parent
e4a30712b5
commit
e178712457
@ -129,7 +129,7 @@ export interface ConnexionInterface {
|
|||||||
/*webrtc*/
|
/*webrtc*/
|
||||||
sendWebrtcRomm(roomId: string): void;
|
sendWebrtcRomm(roomId: string): void;
|
||||||
|
|
||||||
sendWebrtcSignal(signal: any, roomId: string): void;
|
sendWebrtcSignal(signal: any, roomId: string, userId?: string): void;
|
||||||
|
|
||||||
receiveWebrtcSignal(callBack: Function): void;
|
receiveWebrtcSignal(callBack: Function): void;
|
||||||
|
|
||||||
@ -230,9 +230,9 @@ export class Connexion implements ConnexionInterface {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
sendWebrtcSignal(signal: any, roomId: string) {
|
sendWebrtcSignal(signal: any, roomId: string, userId? : string ) {
|
||||||
this.socket.emit(EventMessage.WEBRTC_SIGNAL, JSON.stringify({
|
this.socket.emit(EventMessage.WEBRTC_SIGNAL, JSON.stringify({
|
||||||
userId: this.userId,
|
userId: userId ? userId : this.userId,
|
||||||
roomId: roomId,
|
roomId: roomId,
|
||||||
signal: signal
|
signal: signal
|
||||||
}));
|
}));
|
||||||
|
Loading…
Reference in New Issue
Block a user