I am using socket.io-redis adapter for REDIS sub/pub feature and socket.io-emitter which broadcast data out of of socket.io process.
On connection new socket it register middleware like this:
but on broadcasting data this middleware is not called...
I investigate that socket.io-redis lib is calling socket.io-adapter to broadcast data but this broadcast doesn't invoke middlewares like I expected. I appreciate any help :)
I am using socket.io-redis adapter for REDIS sub/pub feature and socket.io-emitter which broadcast data out of of socket.io process. On connection new socket it register middleware like this:
but on broadcasting data this middleware is not called... I investigate that socket.io-redis lib is calling socket.io-adapter to broadcast data but this broadcast doesn't invoke middlewares like I expected. I appreciate any help :)