Skip to content

No information on how to handle errors #29029

@janpfeifer

Description

@janpfeifer

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_client_applications

What specific section or headline is this issue about?

The example doesn't handle errors

What information was incorrect, unhelpful, or incomplete?

From reading the page, looking at onopen or onmessage handlers, there is no error handling. What if it failed to open, or there was an error ?

What did you expect to see?

Some description on what happens if there was an error.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions