Page URL
https://docs.flutter.dev/cookbook/networking/web-sockets#1-connect-to-a-websocket-server
Page source
https://github.com/flutter/website/blob/main/src/content/cookbook/networking/web-sockets.md
Describe the problem
Running the WebSocket example produces the following console errors:
- WebSocket connection to 'wss://echo.websocket.events/' failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVED.
- Uncaught (in promise) RethrownDartError: WebSocketChannelException: WebSocketException: Failed to connect WebSocket
Expected fix
Referencing the WebSocket documentation https://websocket.org/reference/websocket-api/, the correct echo server URL is now wss://echo.websocket.org.
Additional context
No response
I would like to fix this problem.
Page URL
https://docs.flutter.dev/cookbook/networking/web-sockets#1-connect-to-a-websocket-server
Page source
https://github.com/flutter/website/blob/main/src/content/cookbook/networking/web-sockets.md
Describe the problem
Running the WebSocket example produces the following console errors:
Expected fix
Referencing the WebSocket documentation https://websocket.org/reference/websocket-api/, the correct echo server URL is now wss://echo.websocket.org.
Additional context
No response
I would like to fix this problem.