fix APISocket
This commit is contained in:
parent
314b615f47
commit
4753acfae2
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user