How to add authentication before executing socket.on('do something')?

前端 未结 0 1590
鱼传尺愫
鱼传尺愫 2021-02-07 15:13

In fact, I want to restrict users from connecting to the Socket before logging into the Web.

For api calls, I can use passport.js(session) and do the following to restric

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