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
|
|
@ -28,7 +28,7 @@ express.get('*', function(req, res){
|
|||
}
|
||||
})
|
||||
|
||||
|
||||
server.listen(settings.read('httpPort'))
|
||||
|
||||
zeroconf.publish({
|
||||
name: settings.read('appName') + (settings.read('instanceName') ? ' (' + settings.read('instanceName') + ')' : ''),
|
||||
|
|
|
|||
|
|
@ -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