-
-
Notifications
You must be signed in to change notification settings - Fork 596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support custom serialization methods for message queue packets #755
Comments
this would be useful for our usecase, in a hacky way :) we currently use RedisManager and for many messages, we need to send the same object to different rooms. the objects can be quite large, and currently in if this was added, we could pre-pickle the data before passing it to |
@cfal for any custom needs, you can subclass |
thanks! we thought about doing this, but there's no great way to do that at the moment, because the serialization logic is inside the _publish method: https://github.com/miguelgrinberg/python-socketio/blob/main/src/socketio/redis_manager.py#L74-L87 it seems like we'd have to copy over the redis logic in _publish as well, which might be ok, but make upgrades a bit scarier.. |
Hi All - Any updates on this? Anywhere I might be able to help with my limited programming skills? Would love to be able to implement msgpack-python. |
@mbwmbw1337 I'm not actively working on this right now. I intend to add this at some point, but there are other things I want to do first. |
Thank you, sir. Keep up the excellent work. Loving what you've done w/ this so far and someone is maintaining a implementation of socket-io! Regards, Michael |
Currently,
pickle
is used, without an easy option to change it.The text was updated successfully, but these errors were encountered: