Is there any way to retrieve the socket.io object from a socket.on event?

前端 未结 0 1284
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-25 04:36

On my server, I wanted to modularize my webapp\'s socket events. I did it like this:

server-socket.js

let io;
let handler = require("./handler.js"         


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