client-js
client-js copied to clipboard
open-rpc Client.notify does not resolve
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 reproduce the behavior:
const client = new Client(new RequestManager(new WebsocketTransport(uri)));
try {
await client.notify('test')
}finally {
alert('done')
}
Expected behavior Expected promise to resolve or reject(and alert 'done')
Smartphone (please complete the following information):
- OS: Android
- Browser: Chrome
- Version 79
Similar This issue is caused by the same problem.
Issue is not fixed yet