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"];