Skip to content

WebSocket connection to wss://echo.websocket.events/ failed #13182

@IvoneDjaja

Description

@IvoneDjaja

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:

  1. WebSocket connection to 'wss://echo.websocket.events/' failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVED.
  2. Uncaught (in promise) RethrownDartError: WebSocketChannelException: WebSocketException: Failed to connect WebSocket
Image

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.

  • I will try and fix this problem on docs.flutter.dev.

Metadata

Metadata

Assignees

No one assigned

    Labels

    from.page-issueReported in a reader-filed concern

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions