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

Is this lib support tcp protocol? #28

Open
vCassius opened this issue Sep 12, 2023 · 1 comment
Open

Is this lib support tcp protocol? #28

vCassius opened this issue Sep 12, 2023 · 1 comment

Comments

@vCassius
Copy link

Is this lib support tcp protocol or only http layer?

@kardeiz
Copy link
Owner

kardeiz commented Sep 12, 2023

It's mostly agnostic—you can put in bytes/request and get out a serializable response. The current "integrations" (actix-web and hyper) are at the HTTP layer, but these are pretty thin wrappers around the main jsonrpc_v2::Server:

pub fn into_actix_web_service(

So, it shouldn't be too much work to get it set up with a TcpStream.

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

2 participants