ipc: use websocket only, no xhr to ws upgrade

This commit is contained in:
jean-emmanuel 2018-01-25 14:06:48 +01:00
parent b3ec24e28f
commit 28c4bee396
2 changed files with 2 additions and 2 deletions

View file

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