summaryrefslogtreecommitdiff
path: root/scripts/socket
diff options
context:
space:
mode:
authorKyle Gunger <corechg@gmail.com>2020-09-29 01:53:49 -0400
committerKyle Gunger <corechg@gmail.com>2020-09-29 01:53:49 -0400
commit673d16d8f2fb9d7b7df5f6fcadfbc665f329887c (patch)
treea75381de6b9d2441310599de71fd7ea5d143b153 /scripts/socket
parent04010b3b1f6ba6fc44d2cd0cd6a8a39446cd7b1d (diff)
More drag updates
Diffstat (limited to 'scripts/socket')
-rw-r--r--scripts/socket/sock.js5
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)
+ }
}