According to websocket.org the service is no longer available. Trying the websocket example myself, I apparently can indeed not connect to echo.websocket.org
Should probably be mentioned here and also probably in https://guide.elm-lang.org/interop/ports.html which uses this exact example. No idea though if this repository is somehow directly "linked" to the elm guide?