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

Allow custom protocols to participate in RPC #2368

Open
rklaehn opened this issue Jun 17, 2024 · 0 comments
Open

Allow custom protocols to participate in RPC #2368

rklaehn opened this issue Jun 17, 2024 · 0 comments
Labels
c-iroh feat New feature or request

Comments

@rklaehn
Copy link
Contributor

rklaehn commented Jun 17, 2024

Custom protocols are currently second class citizens because they can't participate in RPC. We have already done some steps to modularize RPC in quic-rpc and elsewhere.

Not sure if this can be done without making the default case more unwieldy, but ideally custom protocols should get the option to participate in RPC. Basically each custom protocol handler would also get a look at each RPC message and have the option to handle it.

With this we could thin down the giant switch statement that is our current RPC handler, so that only really node internal RPCs would be handled directly by the node.

@rklaehn rklaehn added feat New feature or request c-iroh labels Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-iroh feat New feature or request
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant