Fix send message webrtc

This commit is contained in:
gparant 2020-04-26 17:43:21 +02:00
parent e4a30712b5
commit e178712457

View File

@ -129,7 +129,7 @@ export interface ConnexionInterface {
/*webrtc*/
sendWebrtcRomm(roomId: string): void;
sendWebrtcSignal(signal: any, roomId: string): void;
sendWebrtcSignal(signal: any, roomId: string, userId?: string): 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({
userId: this.userId,
userId: userId ? userId : this.userId,
roomId: roomId,
signal: signal
}));