Skip to content

Commit

Permalink
Throw if options.socketio is set and socket.io is unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Apr 17, 2012
1 parent 090ea4a commit 098e034
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Expand Up @@ -371,6 +371,8 @@ function Application (options) {
if (!self.socketio.logger && self.logger) {
self.socketio.logger = self.logger
}
} else if (options.socketio) {
throw new Error('socket.io is not available');
}

self.httpServer = http.createServer()
Expand Down

0 comments on commit 098e034

Please sign in to comment.