CodeChain-io / CodeChain-io/codechain-sdk-js

Support WebSocket connection

Open
#202 0 comments 0 reactions 0 assignees View on GitHub
discussion enhancement
Dominant language
TypeScript
Stars
26
Forks
14
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.