Skip to content

Minify JSON websocket data via send_json#2128

Merged
Kludex merged 2 commits intoKludex:masterfrom
dosisod:minify-json
Apr 28, 2023
Merged

Minify JSON websocket data via send_json#2128
Kludex merged 2 commits intoKludex:masterfrom
dosisod:minify-json

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
Owner

@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 Kludex: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
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

Successfully merging this pull request may close these issues.

2 participants