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

sds: support (de)serialization of a message channel #2326

Open
adklempner opened this issue Mar 27, 2025 · 0 comments
Open

sds: support (de)serialization of a message channel #2326

adklempner opened this issue Mar 27, 2025 · 0 comments

Comments

@adklempner
Copy link
Member

In the browser context, state is often cleared due to refreshes or disconnection. Creating a message channel from scratch each time can lead to lost messages and unnecessary queries.

We likely want to make it easy to store and recover data related to a message channel in local storage. This requires functions to serialize and deserialize the state of a message channel, and a .from function in addition to the regular constructor.

At minimum, it should be possible to create an instance of MessageChannel given a bloom filter and local history.

@chair28980 chair28980 added this to Waku Mar 27, 2025
@weboko weboko moved this to Triage in Waku Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Triage
Development

No branches or pull requests

1 participant