summaryrefslogtreecommitdiffstats
path: root/webchat/public/client.js
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2013-11-12 02:06:24 +0100
committerlassulus <lassulus@googlemail.com>2013-11-12 02:06:24 +0100
commitfc72fda5fc46daea25a991ba6b907a793e52ed06 (patch)
treee2cf45b464d7e32a909090a21a0ffd239a29d82c /webchat/public/client.js
parent3531d46cc3644a64b990f904e40e4846b8242a07 (diff)
webchat: remove cruft
Diffstat (limited to 'webchat/public/client.js')
-rw-r--r--webchat/public/client.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/webchat/public/client.js b/webchat/public/client.js
index 8865fcc0..a90cf8d6 100644
--- a/webchat/public/client.js
+++ b/webchat/public/client.js
@@ -6,21 +6,8 @@ $(function updateTime () {
return true;
});
-var gensym = (function () {
- var i = 0
- return function () {
- return ++i;
- }
-})()
-
settings.waiting_callbacks = {}
-function request (settings, method, params, callback) {
- var id = gensym()
- settings.waiting_callbacks[id] = callback
- settings.sock.send({method: method, params: params, id: id});
-}
-
$(function connect() {
settings.sock = new SockJS('/echo');
var transport = make_sockjs_client_transport(settings.sock)