paritytech / paritytech/host-rust-core
Rust runtime: Add papi reconnection once Host returns foreground
@pgherveou is already working on this.
Since Sep 15, 2026.
- Dominant language
- Swift
- Stars
- 10
- Forks
- 3
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 148
Description
Source issues:
https://github.com/paritytech/platform-issues/issues/3
https://github.com/paritytech/platform-issues/issues/9
Conversation:
https://matrix.to/#/!xqDrJhfzPoOhVfSVEu:parity.io/$BQLZkHIy1Ky0XwPp8SNlhQL3wwvDhKfeCqfBFd9RIJ0?via=parity.io&via=matrix.org
Ruslan's assumption:
It might be that the web socket connection to the app get killed as i see "Message port closed unexpectedly". And i think this is usually happens when the app goes to background and then is restored after some time. What we did for the native runtime is to manually stop papi connection and restart it again once app returned foreground. We probably could have the similar solution here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.