how to implement middleware in socket.io like express in NodeJS?

前端 未结 0 1274
盖世英雄少女心
盖世英雄少女心 2020-12-02 18:23

How to implement middleware like this in socket.io? Please help

EXPRESS APP

var myLogger = function (req, res, next) {
  console.log(\         


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