Skip to content
This repository was archived by the owner on Oct 19, 2019. It is now read-only.
This repository was archived by the owner on Oct 19, 2019. It is now read-only.

Unable to read CloseFrame content while closing SuperWebsocket #52

@karthikveeraj

Description

@karthikveeraj

Unable to read CloseFrame content while closing SuperWebsocket. I see that intentionally you have commented out these lines and not passing them to the callers.

//if (data.Length > 2)

I'm dealing with a device which sends different OpCodes and reason while closing the connection, the current implementation doesn't allow them. Can I raise PR to address this issue ? I have made necessary changes.

Changes I have done:

  1. Modified WebSocketSession class Close method to capture the reasonText.

  2. Modified the SuperWebSocket.Command.Close<TWebSocketSession> class by uncommenting the code to extract the close frame content and pass that in the Close method.

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