This commit is contained in:
2021-06-25 12:02:37 -04:00
parent 7d562ba010
commit 1f96cbb23e
17 changed files with 620 additions and 145 deletions

View File

@ -22,6 +22,9 @@ app.set('port', port);
var server = http.createServer(app);
var io = require('socket.io')(server);
app.io = io;
/**
* Listen on provided port, on all network interfaces.
*/
@ -87,5 +90,9 @@ function onListening() {
var bind = typeof addr === 'string'
? 'pipe ' + addr
: 'port ' + addr.port;
debug('Listening on ' + bind);
console.log('Listening on ' + bind);
for(let listener of app.onListen){
listener()
}
}