elm-phoenix-socket icon indicating copy to clipboard operation
elm-phoenix-socket copied to clipboard

Fails silently on malformed URL

Open max-vogler opened this issue 8 years ago • 1 comments

Using a malformed URL leads to a hard traceable error:

Phoenix.Socket.init "/socket/websocket" -- instead of "ws://localhost:4000/socket/websocket"

No error message is displayed in the console and no request is made. Logging an error or warning would be helpful.

max-vogler avatar Dec 30 '16 09:12 max-vogler

Looks pretty similar to #19. We need to add socket connection info to the log if debugging is enabled on the socket.

maxstr avatar Mar 20 '17 06:03 maxstr