3.1.4 初始化示例-自定义路径
const socket= io('http://localhost',{
path:"/myownpath"
})
// 服务端
const io =require('socket.io')({
path:"/myownpath"
})const socket= io('http://localhost/admin',{
path:"/mypath"
})Last updated
Was this helpful?
const socket= io('http://localhost',{
path:"/myownpath"
})
// 服务端
const io =require('socket.io')({
path:"/myownpath"
})const socket= io('http://localhost/admin',{
path:"/mypath"
})Last updated
Was this helpful?
Was this helpful?