Merge branch 'production'
This commit is contained in:
commit
aa731bdc89
|
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user