Update client dependencies, embed only gzipped assets and unzip on the fly if needed

This commit is contained in:
Ken-Håvard Lieng 2015-05-15 07:32:32 +02:00
parent c4ac9f782c
commit 5a535cf53e
6 changed files with 127 additions and 337 deletions

View file

@ -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');