Skip to content

Close Event is never dispatched #5

Description

@lnbc1QWFyb24

I noticed that the onclose handler that gets passed in via the options in the constructor is never called if the sturdyWebSocket.close() method is called. After a quick look through the code, it looks like it is never dispatched. Should it be dispatched in the following line after calling ws.close()?

this.ws = undefined;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions