-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathevent.ts
More file actions
36 lines (31 loc) · 692 Bytes
/
event.ts
File metadata and controls
36 lines (31 loc) · 692 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { PortalEventType } from '../../../models/portal/defs'
type WSEventIncomingType =
'PRESENCE_UPDATE' |
'TYPING_UPDATE'
type WSEventIncomingMouseEventType =
'KEY_UP' |
'KEY_DOWN' |
'PASTE_TEXT' |
'MOUSE_MOVE' |
'MOUSE_SCROLL' |
'MOUSE_DOWN' |
'MOUSE_UP'
type WSEventEmittingType =
'JANUS_CONFIG' |
'ROOM_DESTROY' |
'MESSAGE_CREATE' |
'MESSAGE_DESTROY' |
'TYPING_UPDATE' |
'INVITE_UPDATE' |
'USER_JOIN' |
'USER_UPDATE' |
'USER_LEAVE' |
'OWNER_UPDATE' |
'CONTROLLER_UPDATE' |
'QUEUE_UPDATE'
export type WSEventType = WSEventIncomingType | WSEventIncomingMouseEventType | WSEventEmittingType | PortalEventType
export default interface IWSEvent {
op: number
d: any
t?: WSEventType
}