summaryrefslogtreecommitdiffstats
path: root/Cancer/webchat/public/sockjs_client_transport.js
diff options
context:
space:
mode:
authormakefu <root@pigstarter.de>2013-12-30 14:34:38 +0100
committermakefu <root@pigstarter.de>2013-12-30 14:34:38 +0100
commit08aa5e406a1f7b39182e79ea4eb7fabf7d61eaa3 (patch)
tree2db1a54f336167cc3cc3d5f74c77d029fe7e7470 /Cancer/webchat/public/sockjs_client_transport.js
parent133e49566c74f1d21c28536ed31d1514725ed49b (diff)
//Cancer -> //
because that is what painload is all about
Diffstat (limited to 'Cancer/webchat/public/sockjs_client_transport.js')
-rw-r--r--Cancer/webchat/public/sockjs_client_transport.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/Cancer/webchat/public/sockjs_client_transport.js b/Cancer/webchat/public/sockjs_client_transport.js
deleted file mode 100644
index a7b76af3..00000000
--- a/Cancer/webchat/public/sockjs_client_transport.js
+++ /dev/null
@@ -1,25 +0,0 @@
-
-function make_sockjs_client_transport (sock) {
- var transport = {}
-
- sock.onmessage = function (data) {
- console.log('sockjs parse', data)
- try {
- var message = JSON.parse(data.data)
- } catch (error) {
- return console.log('error', error)
- }
- transport.onmessage(message)
- }
-
- transport.send = function (message) {
- try {
- var data = JSON.stringify(message)
- } catch (error) {
- return console.log('sockjs transport send error:', error)
- }
- sock.send(data)
- }
-
- return transport
-}