Browse Source

Fix logging of messages that are binary before closing their connection (#25361)

hometown-3.5.10-merge^2
Emelia Smith 3 years ago committed by Claire
parent
commit
e4bff6cd76
  1. 2
      streaming/index.js

2
streaming/index.js

@ -1090,7 +1090,7 @@ const startWorker = async (workerId) => {
ws.on('message', (data, isBinary) => {
if (isBinary) {
log.debug('Received binary data, closing connection');
log.warn('socket', 'Received binary data, closing connection');
ws.close(1003, 'The mastodon streaming server does not support binary messages');
return;
}

Loading…
Cancel
Save