fix APISocket

This commit is contained in:
HF 2022-01-12 01:50:51 +01:00
parent 314b615f47
commit 4753acfae2

View File

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