Skip to content

Commit

Permalink
remove websocket-server
Browse files Browse the repository at this point in the history
working on replacing it with socket.io
  • Loading branch information
neonstalwart authored and kriszyp committed Sep 29, 2014
1 parent ae765b4 commit cc7faf4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -60,7 +60,6 @@
"dependencies":{
"tunguska": ">=0.3.0",
"rql": ">=0.3.1",
"websocket-server": ">=1.4.01",
"perstore": ">=0.3.0",
"promised-io": ">=0.3.0",
"formidable": ">=1.0.0",
Expand Down
11 changes: 0 additions & 11 deletions start-node.js
@@ -1,6 +1,5 @@
// helpful for debugging
var settings = require("perstore/util/settings"),
ws = require("websocket-server"),
messageJson = require("./media/message/json");

exports.start = function(jsgiApp){
Expand All @@ -9,16 +8,6 @@ exports.start = function(jsgiApp){
);
var port = settings.port || process.env.PORT || 80;
server.listen(port);
require("jsgi-node/ws-jsgi")(ws.createServer({
server: server
}), function(request){
request.method = "POST";
var headers = request.headers;
headers.accept = "message/json";
headers["content-type"] = "message/json";
headers.stream = true;
return jsgiApp(request);
});

console.log("Listening on port " + port);
return server;
Expand Down

0 comments on commit cc7faf4

Please sign in to comment.