mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-22 13:29: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 {
|
export interface RTCSocketMessage {
|
||||||
title: string,
|
title: string,
|
||||||
callId ?: string,
|
callHash ?: string,
|
||||||
peerId ?: string,
|
peerId ?: string,
|
||||||
data: any
|
data: any
|
||||||
}
|
}
|
||||||
@ -105,7 +105,7 @@ export class RTCRelayController {
|
|||||||
private static async SendMessage(msg: RTCSocketMessage) {
|
private static async SendMessage(msg: RTCSocketMessage) {
|
||||||
this.currWs.send(JSON.stringify({
|
this.currWs.send(JSON.stringify({
|
||||||
title: msg.title,
|
title: msg.title,
|
||||||
callId: msg.callId,
|
callHash: msg.callHash,
|
||||||
peerId: msg.peerId,
|
peerId: msg.peerId,
|
||||||
data: msg.data
|
data: msg.data
|
||||||
}));
|
}));
|
||||||
|
Loading…
Reference in New Issue
Block a user