1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2025-06-19 16:15:16 +00:00

Relay messages from proxy to clients

This commit is contained in:
2020-04-11 13:35:27 +02:00
parent 2e6461c34a
commit 29736cd98d
3 changed files with 82 additions and 8 deletions

View File

@ -12,6 +12,13 @@ import { ActiveClient } from "../controllers/UserWebSocketController";
// When RTC Relay WebSocket is closed
export interface ClosedRelayWebSocketEvent {}
// When a signal is sent from the RTC proxy
export interface CallSignalFromRTCRelayEvent {
peerID: string,
callHash: string,
data: any
}
// When a user sign out
export interface DestroyedLoginTokensEvent {
userID: number,
@ -68,6 +75,7 @@ export interface CommentDeletedEvent {
*/
export interface EventsMap {
"rtc_relay_ws_closed": ClosedRelayWebSocketEvent,
"rtc_relay_signal": CallSignalFromRTCRelayEvent,
"destroyed_login_tokens": DestroyedLoginTokensEvent,
"user_ws_closed": UserWebSocketClosedEvent,
"updated_number_notifications": UpdatedNotificationsNumberEvent,