Set up ESLint, make it happy

This commit is contained in:
Ken-Håvard Lieng 2015-06-02 00:09:28 +02:00
parent c325168a20
commit 6a1d55c968
26 changed files with 132 additions and 110 deletions

View file

@ -3,7 +3,7 @@ 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');
@ -12,7 +12,7 @@ class Socket extends EventEmitter {
var msg = JSON.parse(e.data);
this.emit(msg.type, msg.response);
}
};
}
send(type, data) {