ipc: use websocket only, no xhr to ws upgrade
This commit is contained in:
parent
b3ec24e28f
commit
28c4bee396
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue