How to write custom middleware and pass to socket-io custom event pipeline?

前端 未结 0 991
谎友^
谎友^ 2020-12-02 13:50

I am using socket-io for building a chat app. And I have many custom events and for each event I want to pass different middleware function? In my case io.use(somefun

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