websocket icon indicating copy to clipboard operation
websocket copied to clipboard

Error being swallowed when trying to open a websocket with a `#` character in its url

Open davoclavo opened this issue 9 years ago • 0 comments

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?

screen shot 2016-07-04 at 2 58 13 am

davoclavo avatar Jul 04 '16 10:07 davoclavo