From 0610acbf6eef11a9a85cc35851150cb3cc072785 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 20 Mar 2017 13:54:59 +0900 Subject: #302 --- src/web/app/common/scripts/stream.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/web/app/common/scripts') diff --git a/src/web/app/common/scripts/stream.js b/src/web/app/common/scripts/stream.js index d6e6bf8aa5..cbdde8d2f2 100644 --- a/src/web/app/common/scripts/stream.js +++ b/src/web/app/common/scripts/stream.js @@ -44,6 +44,10 @@ class Connection { } } + send(message) { + this.socket.send(JSON.stringify(message)); + } + close() { this.socket.removeEventListener('open', this.onOpen); this.socket.removeEventListener('message', this.onMessage); -- cgit v1.2.3-freya