diff --git a/packages/api/src/utility/socket.js b/packages/api/src/utility/socket.js index a3bac633..00c6300b 100644 --- a/packages/api/src/utility/socket.js +++ b/packages/api/src/utility/socket.js @@ -46,7 +46,7 @@ module.exports = { continue; } - sseResponses[strmid].response.write( + sseResponses[strmid].response?.write( `event: ${message}\ndata: ${stableStringify(data == null ? null : data)}\n\n` ); }