ipc: restore long polling to websocket upgrade, seems necessary sometimes; disable compression
This commit is contained in:
parent
50d960f2da
commit
e6841ec43f
2 changed files with 3 additions and 4 deletions
|
|
@ -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)
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue