1
0
Fork 0
mirror of synced 2024-10-05 12:34:50 +13:00

Restore original comment

This commit is contained in:
Andrew Kingston 2023-06-15 09:29:46 +01:00
parent 99a8fc7c12
commit 3cbebaf40d

View file

@ -276,7 +276,8 @@ export class BaseSocket {
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) {
this.io.in(room).emit(event, {
...payload,