Skip to content

open-rpc Client.notify does not resolve #309

@rowend36

Description

@rowend36

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions