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:
@ -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,
|
||||
|
Reference in New Issue
Block a user