Skip to content

Conversation

wbamberg
Copy link
Contributor

@wbamberg wbamberg commented Aug 8, 2025

This adds a minimal websocket client/server to dom-examples.

For background about why, see https://github.com/orgs/mdn/discussions/817 - the existing guide refers to the obsolete example at https://github.com/mdn/samples-server/tree/master/s/websocket-chat.

If this PR is merged, I'd like to update that guide to refer to this example.

The whole thing is a lightly edited version of the existing Deno example.

I've updated it to be bfcache-compatible, and I've verified that it is, using the Chrome devtools.

@wbamberg wbamberg requested a review from a team as a code owner August 8, 2025 18:04
@wbamberg wbamberg requested review from pepelsbey and removed request for a team August 8, 2025 18:04
Copy link
Member

@bsmth bsmth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some typos for you, but otherwise works for me after following the README 👍🏻

wbamberg and others added 2 commits August 26, 2025 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants