Merge branch 'production'
This commit is contained in:
commit
aa731bdc89
|
@ -63,8 +63,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