-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInterfaces.ts
More file actions
37 lines (31 loc) · 812 Bytes
/
Interfaces.ts
File metadata and controls
37 lines (31 loc) · 812 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
37
export interface Graylog2 {
graylogHost: string,
graylogPort: number,
graylogFacility: string
}
export interface MessageRequest {
commandType: string,
message: string
}
export interface GetUsersRequest {
commandType: string,
room: string
}
export interface SwitchRoomRequest {
commandType: string,
room: string
}
export interface GetUsersResponse {
commandType: string;
users: Array<string>;
}
export interface SendMessageResponse {
commandType: string;
message: string;
}
export interface RoomManager {
sendToRoom(room:string, message: string): any;
stopListeningOnRoom(room: string, listener: Function, name: string): any;
listenOnRoom(room: string, listener: Function, name: string): any;
getUsersIn(room: string): Array<string>;
}