Pushing in an array not persistent in socket io emit

前端 未结 0 1191
梦谈多话
梦谈多话 2020-12-29 01:11
var users = []
//
io.on("connection", function (socket) {
      socket.on("new user",(userName)=>{
        console.log(users)
        users.pu         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题