How to pass node.js io (socket.io) instance to other modules?

后端 未结 0 405
谎友^
谎友^ 2021-01-18 09:21

I have set up socket.io on my server.js but I have to use io instance in one of my route modules I have searched and found one but it didn\'t work.

@ server.js

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