diff options
Diffstat (limited to 'scripts/socket/sock.js')
-rw-r--r-- | scripts/socket/sock.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/socket/sock.js b/scripts/socket/sock.js index 4eacc18..31b9a7f 100644 --- a/scripts/socket/sock.js +++ b/scripts/socket/sock.js @@ -62,4 +62,9 @@ class SockWorker extends EventTarget{ var m = new Message(type, data); this.socket.send(m.stringify()) } + + // Raw message the server + sendRaw (s) { + this.socket.send(s) + } } |