Skip to content

Missing close status codes for websockets #5192

Closed
@achimnol

Description

🐞 Describe the bug

ref: https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent
current: https://github.com/aio-libs/aiohttp/blob/707736b/aiohttp/http_websocket.py#L31-L42

The close code 1014, 1015 is missing, and one of my use case (websocket proxy) involves 1014,
which results in an unexpected error "Invalid close code: 1014".

I think we need to update the list.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions