Skip to content

Commit

Permalink
Emit status when new client connects
Browse files Browse the repository at this point in the history
  • Loading branch information
jfabellera committed Sep 27, 2024
1 parent 75f1e64 commit 668edd4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions back-end/realtime/src/rooms/FCS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ export default class FCS extends Room {
}

public initializeEvents(socket: Socket): void {
// Emit init and status packets when a client connects
socket.emit('fcs:init', this.packetManager.getInitPacket());
socket.emit('fcs:status', this.status);

socket.on(
'fcs:setFieldOptions',
Expand Down

0 comments on commit 668edd4

Please sign in to comment.