Skip to content
Snippets Groups Projects
Unverified Commit 21508124 authored by Emelia Smith's avatar Emelia Smith Committed by GitHub
Browse files

Add logging of websocket send errors (#25280)

parent b19a6956
No related branches found
No related tags found
No related merge requests found
......@@ -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}`);
}
});
};
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment