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

JSON-RPC 2.0 over stdio #1

Merged
merged 4 commits into from
Aug 8, 2020
Merged

JSON-RPC 2.0 over stdio #1

merged 4 commits into from
Aug 8, 2020

Conversation

ctaggart
Copy link
Owner

@ctaggart ctaggart commented Aug 8, 2020

The extensions communicate over stdio, using JSON-RPC 2.0. This is how to do that using Rust. cargo build --target=wasm32-wasi works as well.

To test, run cargo run or cargo wasi run and

Entering this request line:

{"jsonrpc": "2.0", "method": "say_hello", "id": 1}

Will respond with this line:

{"jsonrpc":"2.0","result":"Hello World!","id":1}

links
paritytech/jsonrpsee#122
Azure/autorest#3502 (comment)

@ctaggart ctaggart merged commit cffa90c into master Aug 8, 2020
@ctaggart ctaggart deleted the stdio branch August 8, 2020 17:06
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.

None yet

1 participant