Skip to content

Add a way to listen to multiple protocols on the same endpoint. #18

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rklaehn
Copy link
Collaborator

@rklaehn rklaehn commented May 7, 2025

Basic code to try to deserialize to multiple handlers.

Note that this is very WIP, and also the normal listen fn needs some love if we want to deploy this in prod.

This solves a problem I also had with blobs. Basically much of the RPC api is just available directly on the store, but there are some things that also require an endpoint. So what to do? Always require an endpoint, that sucks for cases where you just want to work with the local store.

Now we can make the "swarm" API and the store api 2 different ones yet handle them both.

I have postponed thinking about this since remote rpc is currently not a priority, but it is very cool.

@rklaehn rklaehn requested a review from Frando May 7, 2025 17:23
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.

1 participant