Skip to content

Commit

Permalink
sockjs/sockjs-protocol#28 - always pack the message in square brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
majek committed Mar 16, 2012
1 parent 62791b7 commit 9596e11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/trans-websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var WebSocketTransport = SockJS.websocket = function(ri, trans_url) {
};

WebSocketTransport.prototype.doSend = function(data) {
this.ws.send(data);
this.ws.send('[' + data + ']');
};

WebSocketTransport.prototype.doCleanup = function() {
Expand Down

0 comments on commit 9596e11

Please sign in to comment.