chore: turn off deflate

This commit is contained in:
cha0s 2019-04-12 00:09:25 -05:00
parent 768506c26e
commit cfeb9ddff5
2 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@ class SocketClient extends EventEmitter {
this.socket = io(address, {
parser: SocketIoParser,
path: '/avocado',
perMessageDeflate: false,
});
this.socket.on('connect', () => {
this.emit('connect');

View File

@ -10,6 +10,7 @@ export class Server extends EventEmitter {
this.io = new SocketServer(httpServer, {
parser: SocketIoParser,
path: '/avocado',
perMessageDeflate: false,
serveClient: false,
});
this.io.on('connect', (socket) => {