simple proxmox
This commit is contained in:
@ -21,6 +21,10 @@ 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,4 +91,8 @@ function onListening() {
|
||||
? 'pipe ' + addr
|
||||
: 'port ' + addr.port;
|
||||
debug('Listening on ' + bind);
|
||||
|
||||
for(let listener of app.onListen){
|
||||
listener()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user