chore: add check for connection status before sending
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
This commit is contained in:
@@ -206,6 +206,11 @@ export class SignalsService implements EventSubscriber {
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (conn.ws.readyState !== WebSocket.OPEN) {
|
||||
return;
|
||||
}
|
||||
|
||||
conn.ws.send(jsonMessage);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user