Skip to content

chore(deps): upgrade wry from 0.45.0 to v0.52.0, switch to websocket instead of longpoll #4255

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

Merged
merged 20 commits into from
Jul 2, 2025

Conversation

Plebshot
Copy link
Contributor

@Plebshot Plebshot commented Jun 6, 2025

I wanted to look more into #3961 and tried upgrading wry to see if there was a magical fix in the last 6 version. Sadly, I didn't see a difference in that behavior.

Still, I propose upgrading wry anyway to not fall too far behind. Note that this is a breaking change! The signatures for the handlers we expose in the launch config changed. If it's necessary, this can probably be prevented as the new WebViewId is not used for anything. But since we release 0.7 soon I thought this might as well be included

Please note, I have barely an idea what I'm doing here. I just went through the breaking changes in Wry's changelog and adjusted the code accordingly. I can only verify that a basic app seems to still work as expected on my Linux machine.

@Plebshot Plebshot requested a review from a team as a code owner June 6, 2025 16:22
@jkelleyrtp
Copy link
Member

Unfortunately we can't upgrade to the newest wry until we find a fix for tauri-apps/wry#1551

That bug just entirely breaks android apps for us which is not great. I think this means we will end up switching to a websocket to send binary data into the the webviews, but that's a more complex fix than just the simple upgrade.

@Plebshot
Copy link
Contributor Author

That's unfortunate indeed. Changing the actual business logic here is a bit over my head and time budget at the moment. Feel free to either close this PR or leave it open as reference in case someone else tries to upgrade wry.

@jkelleyrtp jkelleyrtp changed the title chore(deps): upgrade wry from 0.45.0 to v0.51.2 chore(deps): upgrade wry from 0.45.0 to v0.52.0 Jun 25, 2025
@ealmloff ealmloff added breaking This is a breaking change desktop Suggestions related to the desktop renderer labels Jun 25, 2025
@jkelleyrtp jkelleyrtp added this to the 0.7.0 milestone Jul 1, 2025
@jkelleyrtp jkelleyrtp merged commit d5daf14 into DioxusLabs:main Jul 2, 2025
20 checks passed
@jkelleyrtp jkelleyrtp changed the title chore(deps): upgrade wry from 0.45.0 to v0.52.0 chore(deps): upgrade wry from 0.45.0 to v0.52.0, switch to websocket instead of longpoll Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking This is a breaking change desktop Suggestions related to the desktop renderer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants