Skip to content

Return the close code in WebSocketCommonProtocol.wait_closed #513

@lgrahl

Description

@lgrahl

I would find it useful to get the close code as the WebSocketCommonProtocol.wait_closed future's result.

Currently, I'm wrapping .wait_closed in my use case to be able to return the close code. This could also include the reason. Instead of returning a tuple for these, we could just return the ConnectionClosed instance.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions