Skip to content

Please make protocols array configurable #678

@volkanunsal

Description

@volkanunsal

Is your feature request related to a problem? Please describe.

There is a bug in Cloudflare platform that is validating and throwing an error when the second argument of WebSocket constructor, i.e. protocols, is an empty array.

cloudflare/workerd#5822

Describe the solution you'd like
Is it possible to make this configurable via connection arguments and override it?

Describe alternatives you've considered

// @ts-ignore
chatSocket.socket._protocols = ["wss"];

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