diff --git a/src/core/api/websocket.gateway.core.ts b/src/core/api/websocket.gateway.core.ts index f6d22d24..d4043a07 100644 --- a/src/core/api/websocket.gateway.core.ts +++ b/src/core/api/websocket.gateway.core.ts @@ -65,7 +65,12 @@ export class WebsocketGatewayCore .getSessionEvents(session, events) .subscribe((data) => { this.logger.debug(`Sending data to client, event.id: ${data.id}`, data); - socket.send(JSON.stringify(data)); + socket.send(JSON.stringify(data), (err) => { + if (!err) { + return; + } + this.logger.error(`Error sending data to client: ${err}`); + }); }); socket.on('close', () => { this.logger.debug(`Client disconnected - ${socket.id}`);