Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Minify JSON websocket data via send_json #2128

Merged
merged 2 commits into from
Apr 28, 2023
Merged

Conversation

dosisod
Copy link
Contributor

@dosisod dosisod commented Apr 21, 2023

Summary

Similar to how JSON data is minified in the JSONResponse class, JSON data sent via websocket should also be minified.

Checklist

  • I understand that this PR may be closed in case there was no previous discussion. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.

dosisod and others added 2 commits April 20, 2023 22:46
Similar to how JSON data is minified in the `JSONResponse` class, JSON data
sent via websocket should also be minified.
Copy link
Member

@Kludex Kludex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok 🤷‍♂️

Thanks.

@Kludex Kludex merged commit ac469df into encode:master Apr 28, 2023
adriangb pushed a commit to adriangb/starlette that referenced this pull request Apr 29, 2023
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
@aminalaee aminalaee mentioned this pull request May 14, 2023
3 tasks
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants