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

open-rpc Client.notify does not resolve

Open rowend36 opened this issue 2 years ago • 1 comments

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.

rowend36 avatar May 06 '22 08:05 rowend36

Issue is not fixed yet

frake23 avatar Oct 09 '22 16:10 frake23