mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-25 08:33:41 +01:00
Add logging of websocket send errors (#25280)
This commit is contained in:
parent
b19a695608
commit
215081240f
1 changed files with 5 additions and 1 deletions
|
@ -828,7 +828,11 @@ const startServer = async () => {
|
||||||
return;
|
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…
Reference in a new issue