Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 2 changed files with 1 addition and 3 deletions. Show diff stats Hide diff stats

  1. +1 1  server.js
  2. +0 2  worker_api.js
2  server.js
@@ -143,7 +143,7 @@ app.configure(function() {
143 143
144 144 //var socketio = io.listen(app);
145 145
146   -app.use("/workers", require("./worker_api")(socketio));
  146 +app.use("/workers", require("./worker_api")(io));
147 147
148 148 /* Redirect to correct URL on every request */
149 149 app.get(/.*/, function (req, resp, next) {
2  worker_api.js
@@ -16,12 +16,10 @@ var express = require("express"),
16 16
17 17 module.exports = function(socketio) {
18 18
19   - /*
20 19 var jobs_per_minute = 0;
21 20 setInterval(function(){
22 21 socketio.broadcast(JSON.stringify({time: new Date().getTime(), jobs_per_minute: jobs_per_minute}));
23 22 }, 2000);
24   -*/
25 23
26 24 var app = express.createServer();
27 25

0 comments on commit c7a12c8

Please sign in to comment.
Something went wrong with that request. Please try again.