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

Support to update store from server when using partykit #212

Open
rbhalla opened this issue Feb 15, 2025 · 0 comments
Open

Support to update store from server when using partykit #212

rbhalla opened this issue Feb 15, 2025 · 0 comments

Comments

@rbhalla
Copy link

rbhalla commented Feb 15, 2025

Is your feature request related to a problem? Please describe.
Partykit supports event handling for events outside of client updates (e.g. alarms and disconnections). However, I can't see any easy way to update the store from the server side.

There is some ability to add an override for onRequest but it's not clear how to actually manipulate the store using this method.

Describe the solution you'd like
Ideally a tinybase like instance that allows you to manipulate the store like you would on the instance would be great.

Describe alternatives you've considered
I considered just faking messages/requests from the server as if they were client requests, but this seems brittle.

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

No branches or pull requests

1 participant