Skip to content

Commit

Permalink
[fix] Disable permessage deflate - it's unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd-Eden committed Dec 6, 2014
1 parent 9f606c3 commit 7d9e1f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -77,6 +77,6 @@
"socket.io-client": "0.9.x",
"sockjs": "0.3.x",
"sockjs-client-node": "0.1.x",
"ws": "0.5.x"
"ws": "0.6.x"
}
}
3 changes: 2 additions & 1 deletion transformers/websockets/server.js
Expand Up @@ -16,6 +16,7 @@ module.exports = function server() {
, Spark = this.Spark;

var service = this.service = new WebSocketServer({
perMessageDeflate: false,
clientTracking: false,
noServer: true
});
Expand Down Expand Up @@ -63,7 +64,7 @@ module.exports = function server() {

//
// Listen to non-upgrade requests.
//
//
this.on('request', function request(req, res) {
res.writeHead(426, { 'content-type': 'text/plain' });
res.end(http.STATUS_CODES[426]);
Expand Down

0 comments on commit 7d9e1f4

Please sign in to comment.