Restore original comment

This commit is contained in:
Andrew Kingston 2023-06-15 09:29:46 +01:00
parent 99a8fc7c12
commit 3cbebaf40d
1 changed files with 2 additions and 1 deletions

View File

@ -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,