feat(auction): cancel active auction
This commit is contained in:
1 parent
8a9dd37755
commit
ef693fcf4a
5 files changed
+182
-2
No files matched your search
@@ -364,6 +364,11 @@ export class AuctionGateway
|
||||
this.syncRoomTimer(matchId, auction);
|
||||
}
|
||||
|
||||
public broadcastReset(matchId: string) {
|
||||
this.clearRoomTimer(matchId);
|
||||
this.server.to(matchId).emit('reset', { matchId });
|
||||
}
|
||||
|
||||
private emitChatHistory(socket: Socket, auction: AuctionDocument) {
|
||||
socket.emit('chat-history', {
|
||||
messages: (auction.chatMessages ?? []).map((message) =>
|
||||
|
||||
Reference in new issue
Block a user