Adapting admin connection to pusher.
Done: onUserLeave / onUserEnter To be done: ban / unban
This commit is contained in:
parent
bf797085e6
commit
24cb85cc7c
10 changed files with 306 additions and 522 deletions
|
@ -11,7 +11,7 @@ class ClientEventsEmitter extends EventEmitter {
|
|||
emitClientLeave(clientUUid: string, roomId: string): void {
|
||||
this.emit(clientLeaveEvent, clientUUid, roomId);
|
||||
}
|
||||
|
||||
|
||||
registerToClientJoin(callback: (clientUUid: string, roomId: string) => void): void {
|
||||
this.on(clientJoinEvent, callback);
|
||||
}
|
||||
|
@ -29,4 +29,4 @@ class ClientEventsEmitter extends EventEmitter {
|
|||
}
|
||||
}
|
||||
|
||||
export const clientEventsEmitter = new ClientEventsEmitter();
|
||||
export const clientEventsEmitter = new ClientEventsEmitter();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue