Update client dependencies, embed only gzipped assets and unzip on the fly if needed
This commit is contained in:
parent
c4ac9f782c
commit
5a535cf53e
6 changed files with 127 additions and 337 deletions
|
@ -2,6 +2,8 @@ var EventEmitter = require('events').EventEmitter;
|
|||
|
||||
class Socket extends EventEmitter {
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
this.ws = new WebSocket('ws://' + window.location.host + '/ws');
|
||||
|
||||
this.ws.onopen = () => this.emit('connect');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue