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

Support WebSocket connection #202

Open
joojis opened this issue Sep 21, 2018 · 0 comments
Open

Support WebSocket connection #202

joojis opened this issue Sep 21, 2018 · 0 comments
Labels
discussion enhancement New feature or request

Comments

@joojis
Copy link
Contributor

joojis commented Sep 21, 2018

Proposal:

const sdk = new SDK({ server: "ws://..." });

await sdk.rpc.node.ping(); // rejects with Error("Not connected");
await sdk.rpc.connect(); // open
await sdk.rpc.node.ping(); // pong
await sdk.rpc.disconnect(); // close

Any suggestions are welcome

@joojis joojis added enhancement New feature or request discussion labels Sep 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant