mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-22 05:19:22 +00:00
Improve messages structure
This commit is contained in:
parent
b8c19a8875
commit
6e4fd90adb
@ -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
|
||||
}));
|
||||
|
Loading…
Reference in New Issue
Block a user