[Client] Fix bug, some refactorings
This commit is contained in:
parent
7eeb9c4962
commit
de5dc87cec
3 changed files with 30 additions and 16 deletions
|
|
@ -45,6 +45,8 @@ class Connection {
|
|||
}
|
||||
|
||||
send(message) {
|
||||
// TODO: バッファリングしてつぎ接続した時に送信する
|
||||
if (this.state != 'connected') return;
|
||||
this.socket.send(JSON.stringify(message));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue