const server = require('http').createServer(); const io = require('socket.io')(server, { path: '/sockets', serveClient: false, // below are engine.IO options pingInterval: 10000, pingTimeout: 5000, cookie: false }); server.listen(3555); module.exports = io;