Add logging of websocket send errors (#25280)

local
Emelia Smith 11 months ago committed by GitHub
parent b19a695608
commit 215081240f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      streaming/index.js

@ -828,7 +828,11 @@ const startServer = async () => {
return;
}
ws.send(JSON.stringify({ stream: streamName, event, payload }));
ws.send(JSON.stringify({ stream: streamName, event, payload }), (err) => {
if (err) {
log.error(req.requestId, `Failed to send to websocket: ${err}`);
}
});
};
/**

Loading…
Cancel
Save