Permalink
Browse files

mrjoes/sockjs-tornado#8 And again

  • Loading branch information...
1 parent 7e609ce commit b2a2662bd3b81af40bfc2773fda8b04e8d302bde @majek majek committed Mar 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/multiplex/multiplex.js
@@ -27,8 +27,8 @@ var MultiplexedWebSocket = function(ws) {
this.ws = ws;
this.channels = {};
this.ws.addEventListener('message', function(e) {
- var t = e.data.split(',', 3);
- var type = t[0], name = t[1], payload = t[2];
+ var t = e.data.split(',');
+ var type = t.shift(), name = t.shift(), payload = t.join();
if(!(name in that.channels)) {
return;
}

0 comments on commit b2a2662

Please sign in to comment.