Skip to content

Commit

Permalink
Fix packet options
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Atkinson committed Nov 23, 2015
1 parent 8bedf60 commit b4fe763
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/transports/websocket.js
Expand Up @@ -171,7 +171,9 @@ WS.prototype.write = function(packets){
// TypeError is thrown when passing the second argument on Safari
self.ws.send(data);
} else {
self.ws.send(data, packet.options);
self.ws.send(data, {
compress: packet.options.compress
});
}
} catch (e){
debug('websocket closed before onclose event');
Expand Down

0 comments on commit b4fe763

Please sign in to comment.