Merge branch 'production'

This commit is contained in:
HF 2022-01-12 01:52:26 +01:00
commit aa731bdc89

View File

@ -63,8 +63,9 @@ class APISocketServer {
ws.subPxl = false; ws.subPxl = false;
ws.on('pong', heartbeat); ws.on('pong', heartbeat);
ws.on('message', (message) => { ws.on('message', (data, isBinary) => {
if (typeof message === 'string') { if (!isBinary) {
const message = data.toString();
this.onTextMessage(message, ws); this.onTextMessage(message, ws);
} }
}); });