Permalink
Browse files

Tweak server code. May be stepping all over David's style preferences…

… here.
  • Loading branch information...
1 parent a0044eb commit 53da99589d6e0ca1de9a517e3a3288d588e72a8b @akavlie akavlie committed Dec 22, 2011
Showing with 9 additions and 9 deletions.
  1. +2 −5 bin/subway
  2. +7 −4 lib/subway.js
View
@@ -1,7 +1,4 @@
#!/usr/bin/env node
-var Subway = require('../lib/subway').Subway;
-
-var subway = new Subway();
-
-subway.start();
+var subway = require('../lib/subway').subway;
+subway.start();
View
@@ -1,8 +1,9 @@
-var irc = require('irc');
-var io = require('socket.io');
-var app = require('./webserver').app;
+var irc = require('irc'),
+ app = require('./webserver').app
+ io = require('socket.io');
-var Subway = exports.Subway = function() {
+
+var Subway = function() {
var self = this;
self.app = app;
self.io = io;
@@ -14,3 +15,5 @@ Subway.prototype.start = function () {
self.app.listen(3000);
self.io.listen(self.app);
}
+
+exports.subway = new Subway();

1 comment on commit 53da995

Owner

thedjpetersen commented on 53da995 Dec 22, 2011

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.