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