ipc: no compression for less ui lag
This commit is contained in:
parent
f39e5f58ae
commit
d704990b14
1 changed files with 3 additions and 2 deletions
|
|
@ -7,13 +7,14 @@ var Ipc = class Ipc {
|
|||
constructor() {
|
||||
|
||||
this.socket = io.connect('/', {parser:customParser})
|
||||
this.socket.compress(false)
|
||||
|
||||
}
|
||||
|
||||
|
||||
send() {
|
||||
send(event, data) {
|
||||
|
||||
this.socket.emit(...arguments)
|
||||
this.socket.emit(event, data)
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue