Skip to content

Add websockets example #326

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add websockets example #326

wants to merge 1 commit into from

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
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.

1 participant