Skip to content

docs(#93): add websocket middleware documentation for app developers and contributors - #106

Merged
ndorin merged 2 commits into
mainfrom
explanation-docs-93
Aug 26, 2026
Merged

ndorin merged 2 commits into
mainfrom
explanation-docs-93

Conversation

@jkdevito

Copy link
Copy Markdown
Contributor

Summary

Adds websocket middleware documentation for app developers and contributors, and trims the now-redundant content out of the legacy root-level docs.

  • docs/websocket-middleware-app-dev.md — how the websocket middleware works, for app developers
  • docs/websocket-middleware-contributors.md — guide for contributors extending the websocket middleware
  • Trims duplicated content from AUTOMATIC_ROOM_STATUS_IMPLEMENTATION.md, WEBSOCKET_RECONNECTION.md, WEBSOCKET_REFACTOR_SUMMARY.md now that it lives in the new docs

Closes #93

🤖 Generated with Claude Code

…and contributors

Adds the Diataxis EXPLANATION pair for issue #93, following the
established docs/ pattern (see #90-#92, #94, #96):

- docs/websocket-middleware-app-dev.md — connection status, sending
  messages, event handlers, and reconnection behavior from the
  consuming app's point of view.
- docs/websocket-middleware-contributors.md — internal architecture
  of createWebSocketMiddleware: connect flow, close-code handling
  table, reconnection loop, anti-flash delay, message routing, and
  the reactive room-status listeners. Flags an open question (Needs
  Verification callout) about whether the setWebsocketIsConnected/
  setRoomData room-status listeners actually fire, since their
  requestRoomStatus() calls omit the roomKey argument the guard
  checks.

Also supersedes three point-in-time PR-description docs at the repo
root (WEBSOCKET_RECONNECTION.md, WEBSOCKET_REFACTOR_SUMMARY.md,
AUTOMATIC_ROOM_STATUS_IMPLEMENTATION.md) whose close-code and
endpoint details had drifted from the current implementation.
Replaced their content with pointers into the new contributor doc so
existing links don't 404; their per-scenario manual test checklists
described a prior implementation and were dropped rather than
carried forward.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 17, 2026 18:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds maintained WebSocket middleware documentation for both consuming app developers and contributors, and converts older root-level WebSocket/room-status docs into short redirect stubs to avoid duplicated / drifting guidance.

Changes:

  • Added docs/websocket-middleware-contributors.md covering middleware internals, lifecycle, and extension points.
  • Added docs/websocket-middleware-app-dev.md covering the app-facing API (useWsIsConnected, useWebsocketContext) and expected reconnection behavior.
  • Replaced legacy root-level documents with brief redirects pointing to the new docs.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
WEBSOCKET_REFACTOR_SUMMARY.md Replaced historical summary with redirect to the new maintained docs.
WEBSOCKET_RECONNECTION.md Replaced drifted reconnection details with a redirect to the maintained contributor doc section.
AUTOMATIC_ROOM_STATUS_IMPLEMENTATION.md Replaced historical room-status description with redirect to the maintained contributor doc section.
docs/websocket-middleware-contributors.md New contributor-focused reference describing middleware architecture and behavior.
docs/websocket-middleware-app-dev.md New app-developer guide describing connection status, messaging, events, and reconnection expectations.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/websocket-middleware-app-dev.md Outdated
@jkdevito jkdevito self-assigned this Aug 17, 2026
@jkdevito
jkdevito requested a review from ndorin August 26, 2026 14:01
@ndorin
ndorin merged commit e82dae1 into main Aug 26, 2026
3 checks passed
@ndorin
ndorin deleted the explanation-docs-93 branch August 26, 2026 15:20
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.25.0-add-zoom.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.24.1-cache-busting.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.25.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EXPLANATION: How the websocket middleware works

3 participants