Skip to content

Is OnClose always triggered? #1

@bilogic

Description

@bilogic

CancellationTokenSource.Cancel();

After the server gives me a response for logging off, I attempt to close the connection with this repo's ws.Close(CoolWebSocketCloseStatus.NormalClosure), however OnClose was not triggered.

If I send ws.Close(4) (random integer), I get a unhandled OperationCanceledException, "the operation was cancelled" instead.

Any idea how and when OnClose was designed to trigger?

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