Skip to content

Commit

Permalink
Add server event on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
bkimminich committed Jun 13, 2017
1 parent e500605 commit 355a93e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ exports.start = function (readyCallback) {
datacreator()
this.server = server.listen(process.env.PORT || config.get('server.port'), function () {
console.log(colors.yellow('Server listening on port %d'), config.get('server.port'))
io.on('connection', function (socket) {
socket.emit('server started')
})
if (readyCallback) {
readyCallback()
}
Expand Down

0 comments on commit 355a93e

Please sign in to comment.