Socket callbacks in separete file, how to pass socket reference to them?

前端 未结 0 1226
抹茶落季
抹茶落季 2021-01-20 21:50

I have written some app using sockets and now my code looks like this:

io.on(\'connection\', (socket) => {
    socke         


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