Attempt to resurrect qomet code - need some rewrite
[qomet.git] / bin / www
diff --git a/bin/www b/bin/www
index eacc6e5..39c8584 100755 (executable)
--- 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;