Skip to content
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

Use Serializer to serialize message in websocket consumer's chat message response. #11

Open
gibsonbailey opened this issue Aug 30, 2022 · 1 comment

Comments

@gibsonbailey
Copy link
Contributor

Currently, the data broadcasted through the websocket when it receives a chat message is a hard-coded dict. This should probably be controlled by a configurable serializer.

Current code in consumers.py
image

@gibsonbailey
Copy link
Contributor Author

It could be good to look into profiling on the consumer to check how much it's costing us to use DRF serializers rather than a simple, explicit callable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant