ipc: restore long polling to websocket upgrade, seems necessary sometimes; disable compression

This commit is contained in:
jean-emmanuel 2018-02-03 10:21:33 +01:00
parent 50d960f2da
commit e6841ec43f
2 changed files with 3 additions and 4 deletions

View file

@ -5,15 +5,14 @@ var Ipc = class Ipc {
constructor() {
this.socket = io.connect('/', {transports: ['websocket'], upgrade: false})
this.socket.compress(false)
this.socket = io.connect('/')
}
send(event, data) {
this.socket.emit(event, data)
this.socket.compress(false).emit(event, data)
}