It would be helpful to implement MessagePack (Msgpack) encoding/decoding in Socket.IO streams. JSON stringify() has limitations with large or complex data, leading to performance issues and difficulties with certain data types like Date and Mongoose ObjectId's.
Socket.io redis adapter and emitter have support for this already.
https://github.com/socketio/socket.io-redis-adapter/tree/main