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 bcdc8fa6ec
commit 1a25293c78
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)
}