client-js icon indicating copy to clipboard operation
client-js copied to clipboard

A browser-compatible JSON-RPC client with multiple transports.

Results 33 client-js issues
Sort by recently updated
recently updated
newest added

Bumps [ws](https://github.com/websockets/ws) and [@types/ws](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/ws). These dependencies needed to be updated together. Updates `ws` from 7.2.3 to 8.8.1 Release notes Sourced from ws's releases. 8.8.1 Bug fixes The Authorization and Cookie...

dependencies

Library replaces missing `params` argument with `[]` empty list. **To Reproduce** ``` return await this.client .request({ method: 'chain_get_state_root_hash', }) ``` end in a JSON RPC request that looks like this:...

**Describe the bug** After playing around with some of my frontend project's package.json dependencies, I ended up yeeting some of the deps that provided node polyfills along the way, and...

**Describe the bug** Websocket.prototype.send does not respect callback argument in some browsers. As a result, open-rpc notify method with Websocket transport never resolves on said browsers. **To Reproduce** Steps to...

When the server response with bad reponse format, how can I catch the error? `client.request({ method: "method" }).then().catch(err){ //can't trigger this }` ![WX20210115-180433](https://user-images.githubusercontent.com/2651340/104711436-57686800-575c-11eb-9f53-72c7714dd423.png)

**Describe the bug** It is possible to catch a thrown `JSONRPCError` object on failure, but the original error from the request (e.g., over HTTP) is lost, after a number of...

Allow and document the configuration of setting custom headers for the http-based transports.

hello so i really appreciate with your works here that i'm using it right now. but i have difficulties with documentation and typescript. i want to add some http headers...