X-Git-Url: https://git.auder.net/js/config.php?a=blobdiff_plain;f=bin%2Fwww;h=39c858488bc1b39e00709f1bd58f24f07c7e5c84;hb=HEAD;hp=eacc6e590a84adf376064cc50b0dc790b994aeb4;hpb=29c8b391bcdf6ffca53545178e2ad194287a1bdc;p=qomet.git diff --git a/bin/www b/bin/www index eacc6e5..39c8584 100755 --- a/bin/www +++ b/bin/www @@ -38,7 +38,7 @@ cron.schedule('0 0 0 * * *', function() { server.listen(port); server.on('error', onError); server.on('listening', onListening); -const io = require('socket.io').listen(server); +const io = require('socket.io')(server); /* * Sockets handling @@ -72,7 +72,7 @@ function onError(error) if (error.syscall !== 'listen') throw error; - let bind = typeof port === 'string' + const bind = typeof port === 'string' ? 'Pipe ' + port : 'Port ' + port;