4.1.18 服务器引擎生成socket ID server_engine_generateid
io.engine.generateId=(req)=>{
return "custom:id:"+custom_id++;//自定义的id必须是唯一的
}Last updated
Was this helpful?
io.engine.generateId=(req)=>{
return "custom:id:"+custom_id++;//自定义的id必须是唯一的
}Last updated
Was this helpful?
Was this helpful?