Skip to content

listener.isOpen() returns always false #661

@xembook

Description

@xembook

https://github.com/nemtech/symbol-sdk-typescript-javascript/blob/2b18ca2f991aa692dd4384e93b7377954faed695/src/infrastructure/Listener.ts#L200

I want to use listener.isOpen() on browser WebSocket, but it returns always false.
because WebSocket.OPEN is always undefined.

I think it should be corrected as follows.

return this.webSocket.readyState === this.webSocket.OPEN;

please check this, thank you.

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