client-js
client-js copied to clipboard
A browser-compatible JSON-RPC client with multiple transports.
**Describe the bug** The window handler receives messages from any domain and resolves it as the RPC response. **Expected behavior** To check the message origin and act accordingly https://github.com/open-rpc/client-js/blob/master/src/transports/PostMessageWindowTransport.ts#L49 Should...
I am unable to use the library in typescript: ``` import * as c from "@open-rpc/client-js"; const transport = new c.HTTPTransport("http://localhost:8545"); const client = new c.Client(new c.RequestManager([transport])); const result =...
I use https://snowpack.dev to build my app. Currently, I need to use goofy workarounds to use this lib because it uses commonjs. I'd like to see an ESM distribution to...
This repo is specific to JSON-RPC, and has no additional features provided given an open-rpc document. If you look at an example of a repo similar to this but which...
**Describe the bug** As a user having just `code: 7979` is not enough to debug some issues. **To Reproduce** Steps to reproduce the behavior: 1. Go to https://playground.open-rpc.org/ and hit...
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.10.0 Release notes Sourced from ws's releases. 8.10.0 Features Added an export for package.json...
Bumps [minimist](https://github.com/minimistjs/minimist) from 1.2.6 to 1.2.7. Changelog Sourced from minimist's changelog. v1.2.7 - 2022-10-10 Commits [meta] add auto-changelog 0ebf4eb [actions] add reusable workflows e115b63 [eslint] add eslint; rules to enable...
see the issue for details fixes issue #309 The function `send` of WebSocket interface doesn't accept the second argument, so I've turned it into try/catch block
Fixes #343
**Is your feature request related to a problem? Please describe.** The spec is agnostic on transport, and this library provides a few different ones. The Drupal server implementation, for instance,...