socketio / socket.io-redis-emitter

The Socket.IO Redis emitter, allowing to communicate with a group of Socket.IO servers from another Node.js process.
https://socket.io/docs/v4/redis-adapter/
MIT License
722 stars 121 forks source link

Binary isn't a function while using binary flag with socket.io-emitter #86

Closed dverbovyi closed 3 years ago

dverbovyi commented 4 years ago

Hello I would like to use this binary flag https://socket.io/docs/server-api/#Flag-%E2%80%98binary%E2%80%99-1 but haven't found any example with io-emitter Applying it to socket.io-emitter throws binary isn't a function

Thanks in advance

darrachequesne commented 3 years ago

The binary flag is specific to the Socket.IO server, as the socket.io-emitter library directly encode the packet with msgpack. That's why it is not applicable here.

Note: this flag was removed in Socket.IO v3 (https://github.com/socketio/socket.io/commit/669592d120409a5cf00f128070dee6d22259ba4f)