Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Why the fuck did this stop working? How did it ever work in the first…

… place? o_O
  • Loading branch information...
commit c7a12c84de6d2cae109fd18aaa7991133d940212 1 parent 600c22b
Ryan McGrath authored
Showing with 1 addition and 3 deletions.
  1. +1 −1  server.js
  2. +0 −2  worker_api.js
2  server.js
View
@@ -143,7 +143,7 @@ app.configure(function() {
//var socketio = io.listen(app);
-app.use("/workers", require("./worker_api")(socketio));
+app.use("/workers", require("./worker_api")(io));
/* Redirect to correct URL on every request */
app.get(/.*/, function (req, resp, next) {
2  worker_api.js
View
@@ -16,12 +16,10 @@ var express = require("express"),
module.exports = function(socketio) {
- /*
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();
Please sign in to comment.
Something went wrong with that request. Please try again.