ipc: use websocket only, no xhr to ws upgrade
This commit is contained in:
parent
bcdc8fa6ec
commit
1a25293c78
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