Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
majek committed Mar 7, 2012
1 parent 7e609ce commit b2a2662
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/multiplex/multiplex.js
Expand Up @@ -27,8 +27,8 @@ var MultiplexedWebSocket = function(ws) {
this.ws = ws; this.ws = ws;
this.channels = {}; this.channels = {};
this.ws.addEventListener('message', function(e) { this.ws.addEventListener('message', function(e) {
var t = e.data.split(',', 3); var t = e.data.split(',');
var type = t[0], name = t[1], payload = t[2]; var type = t.shift(), name = t.shift(), payload = t.join();
if(!(name in that.channels)) { if(!(name in that.channels)) {
return; return;
} }
Expand Down

0 comments on commit b2a2662

Please sign in to comment.