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

feat: Compress code in URL #82

Merged
merged 3 commits into from
Oct 30, 2019
Merged

feat: Compress code in URL #82

merged 3 commits into from
Oct 30, 2019

Conversation

mattcompiles
Copy link
Contributor

@mattcompiles mattcompiles commented Oct 28, 2019

Compressing the code encoded in the URL should reduce the URL length by over 50% in most cases. To allow for backwards compatibility with old URLs, the new query param is encoded as JSON. Playroom will fall back to the old format if JSON.parse fails.

@mattcompiles
Copy link
Contributor Author

Added new createUrl API that is exposed via import { createUrl } from playroom/utils. This is also used internally to create URLs.

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.

3 participants