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
Set up RPC #14
Comments
I'd like to throw in that earthstar-graphql is capable of doing this job, as it can be carried out over any transport. |
Hmm! Do you think GraphQL would work over a duplex stream like you get from hyperswarm? |
Yes, so you can communicate bi-directionally with a GraphQL server using 'subscriptions' (here's an implementation which can be used with graphql-js, the package earthstar-graphql uses to define its schema: https://github.com/apollographql/graphql-subscriptions) A lot of it is very new to me, but I think (?) this is right in principle. |
I wrote mini-rpc for this purpose, now we need to hook it up in the sync and pub code. |
Right now sync happens over an HTTP REST API.
Generalize this using some RPC framework so it can happen over other transports too.
JSON-RPC is a good choice.
The text was updated successfully, but these errors were encountered: