Skip to content

Commit

Permalink
Cosmetic: indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
majek committed Mar 22, 2012
1 parent 1241bde commit 4cb5970
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions examples/echo/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ var sockjs_opts = {sockjs_url: "http://cdn.sockjs.org/sockjs-0.2.min.js"};

var sockjs_echo = sockjs.createServer(sockjs_opts);
sockjs_echo.on('connection', function(conn) {
conn.on('data', function(message) {
conn.write(message);
});
});
conn.on('data', function(message) {
conn.write(message);
});
});

// 2. Static files server
var static_directory = new node_static.Server(__dirname);

// 3. Usual http stuff
var server = http.createServer();
server.addListener('request', function(req, res) {
static_directory.serve(req, res);
});
static_directory.serve(req, res);
});
server.addListener('upgrade', function(req,res){
res.end();
});
res.end();
});

sockjs_echo.installHandlers(server, {prefix:'/echo'});

Expand Down

0 comments on commit 4cb5970

Please sign in to comment.