4.1.2 服务器端口选项 new_server_port_options
const io=require('socket.io')(3000,{
path:'/test',
serverClient:false,
// 下面是 engine.IO的选项
pingInterval:10000,
pingTimeout:5000,
cookie:false
})Last updated
Was this helpful?
const io=require('socket.io')(3000,{
path:'/test',
serverClient:false,
// 下面是 engine.IO的选项
pingInterval:10000,
pingTimeout:5000,
cookie:false
})Last updated
Was this helpful?
Was this helpful?