1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-21 21:09:22 +00:00

Improve messages structure

This commit is contained in:
Pierre HUBERT 2020-04-11 08:35:46 +02:00
parent b8c19a8875
commit 6e4fd90adb

View File

@ -11,7 +11,7 @@ import { EventsHelper } from '../helpers/EventsHelper';
export interface RTCSocketMessage {
title: string,
callId ?: string,
callHash ?: string,
peerId ?: string,
data: any
}
@ -105,7 +105,7 @@ export class RTCRelayController {
private static async SendMessage(msg: RTCSocketMessage) {
this.currWs.send(JSON.stringify({
title: msg.title,
callId: msg.callId,
callHash: msg.callHash,
peerId: msg.peerId,
data: msg.data
}));