Restore original comment
This commit is contained in:
parent
99a8fc7c12
commit
3cbebaf40d
|
@ -276,7 +276,8 @@ export class BaseSocket {
|
||||||
this.io.sockets.emit(event, payload)
|
this.io.sockets.emit(event, payload)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Emit an event to everyone in a room
|
// Emit an event to everyone in a room, including metadata of whom
|
||||||
|
// the originator of the request was
|
||||||
emitToRoom(ctx: any, room: string, event: string, payload: any) {
|
emitToRoom(ctx: any, room: string, event: string, payload: any) {
|
||||||
this.io.in(room).emit(event, {
|
this.io.in(room).emit(event, {
|
||||||
...payload,
|
...payload,
|
||||||
|
|
Loading…
Reference in New Issue