[Client] Fix bug, some refactorings

This commit is contained in:
syuilo
2017-03-20 14:35:00 +09:00
parent 7eeb9c4962
commit de5dc87cec
3 changed files with 30 additions and 16 deletions

View File

@@ -45,6 +45,8 @@ class Connection {
}
send(message) {
// TODO: バッファリングしてつぎ接続した時に送信する
if (this.state != 'connected') return;
this.socket.send(JSON.stringify(message));
}