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

Can join a call

This commit is contained in:
2020-04-10 15:59:42 +02:00
parent 76105957a0
commit 93e5905095
5 changed files with 102 additions and 8 deletions

View File

@ -1,6 +1,7 @@
import { APIClient } from "../entities/APIClient";
import { ConversationMessage } from "../entities/ConversationMessage";
import { Comment } from "../entities/Comment";
import { ActiveClient } from "../controllers/UserWebSocketController";
/**
* Events manager
@ -14,6 +15,11 @@ export interface DestroyedLoginTokensEvent {
client: APIClient
}
// When a user WebSocket connection is closed
export interface UserWebSocketClosedEvent {
client: ActiveClient
}
// When some user might have an updated number of notifications
export interface UpdatedNotificationsNumberEvent {
usersID: number[]
@ -59,6 +65,7 @@ export interface CommentDeletedEvent {
*/
export interface EventsMap {
"destroyed_login_tokens": DestroyedLoginTokensEvent,
"user_ws_closed": UserWebSocketClosedEvent,
"updated_number_notifications": UpdatedNotificationsNumberEvent,
"updated_number_unread_conversations": UpdateNumberUnreadConversationsEvent,
"sent_conversation_message": SentNewConversationMessageEvent,