Skip to content

Commit

Permalink
Tweak server code. May be stepping all over David's style preferences…
Browse files Browse the repository at this point in the history
… here.
  • Loading branch information
akavlie committed Dec 22, 2011
1 parent a0044eb commit 53da995
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
7 changes: 2 additions & 5 deletions bin/subway
@@ -1,7 +1,4 @@
#!/usr/bin/env node #!/usr/bin/env node


var Subway = require('../lib/subway').Subway; var subway = require('../lib/subway').subway;

subway.start();
var subway = new Subway();

subway.start();
11 changes: 7 additions & 4 deletions lib/subway.js
@@ -1,8 +1,9 @@
var irc = require('irc'); var irc = require('irc'),
var io = require('socket.io'); app = require('./webserver').app
var app = require('./webserver').app; io = require('socket.io');


var Subway = exports.Subway = function() {
var Subway = function() {
var self = this; var self = this;
self.app = app; self.app = app;
self.io = io; self.io = io;
Expand All @@ -14,3 +15,5 @@ Subway.prototype.start = function () {
self.app.listen(3000); self.app.listen(3000);
self.io.listen(self.app); self.io.listen(self.app);
} }

exports.subway = new Subway();

1 comment on commit 53da995

@thedjpetersen
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope its all good, feel free to step right on over it, like I said earlier I think its more important to get something out working.

Please sign in to comment.