mirror of
https://github.com/jcreek/EstimationPoker.git
synced 2026-07-13 02:53:46 +00:00
fix(*): Maintain server connection
This commit is contained in:
@@ -137,6 +137,10 @@ wss.on('connection', (ws: WebSocket, req) => {
|
||||
emoji
|
||||
});
|
||||
}
|
||||
} else if (data.type === 'ping') {
|
||||
if (room) {
|
||||
broadcastToRoom(room.id, 'pong');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user