Skip to content

close is not clean #51

Open
Open
@troolee

Description

@troolee

Hi afrad,

Using lib with ionic 2 app (tested with ionic serve). When I call close method websocket doesn't recognize this as 'clean' close. onCloseHandler handler receives an event with code == 1005. So the lib is trying to reconnect.

If it's a feature, not a bug, then how can I close the socket without auto reconnect? (I do need auto reconnect if connection is dropped by network issues, etc)

Thank you.

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