websocket
websocket copied to clipboard
Error being swallowed when trying to open a websocket with a `#` character in its url
While building an Elm app connecting to a Phoenix channel, I was using tokens that contained # characters in them. As I naively thought they were just a plain string I wasn't uri encoding it before adding it to the query parameters of the socket url.
There is a DOMException when attempting to do new WebSocket(url) and it is being swallowed, is there a way to surface this error?
