jsonrpc-v2
jsonrpc-v2 copied to clipboard
Is this lib support tcp protocol?
Is this lib support tcp protocol or only http layer?
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
: https://github.com/kardeiz/jsonrpc-v2/blob/16ec062ec3e9f83f95458bbb5e5bc6a599adbf75/src/lib.rs#L1176
So, it shouldn't be too much work to get it set up with a TcpStream
.