Skip to content
This repository has been archived by the owner on Jun 19, 2019. It is now read-only.

Commit

Permalink
disable socket.io
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan McGrath committed Aug 30, 2010
1 parent 1495981 commit 31022e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server.js
Expand Up @@ -141,7 +141,7 @@ app.configure(function() {
});


var socketio = io.listen(app);
//var socketio = io.listen(app);

app.use("/workers", require("./worker_api")(socketio));

Expand Down
5 changes: 3 additions & 2 deletions worker_api.js
Expand Up @@ -16,11 +16,12 @@ var express = require("express"),

module.exports = function(socketio) {

var jobs_per_minute = 0;
/*
var jobs_per_minute = 0;
setInterval(function(){
socketio.broadcast(JSON.stringify({time: new Date().getTime(), jobs_per_minute: jobs_per_minute}));
}, 2000);

*/

var app = express.createServer();

Expand Down

0 comments on commit 31022e8

Please sign in to comment.