Repository navigation
docs: define shared manager disconnect scope - #255
Conversation
|
Warning Review limit reached
Next review available in: 40 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
0b77350 to
9dcd306
Compare
Summary
Reference behavior
Fresh Socket.IO and socket.io-client 4.7.5 and 4.8.3 installations produced the same
socket.disconnect(close?)behavior.With
false, the addressed server socket fireddisconnectinganddisconnectwithserver namespace disconnect, while another namespace sharing its client Manager stayed connected. Withtrue, every namespace socket on that Manager disconnected. Each server-side lifecycle pair ran synchronously beforedisconnect(true)returned, and the corresponding clients subsequently observedio server disconnect.The affected sockets followed namespace connection order. Connecting
/adminbefore/reversed both the server and client cross-namespace order, while preservingdisconnectingbeforedisconnectfor each server socket.Manager identity also determines isolation. Calls for distinct namespaces on one origin reused the cached Manager. Repeating a namespace, passing
forceNew: true, or passingmultiplex: falsecreated an independent Manager, and those independent sockets remained connected when the original Manager was closed.Decision
ADR 0028 selects a host-neutral logical Manager as the boundary for connection-wide namespace teardown. Smocket will make
disconnect(false)close only the current namespace and makedisconnect(true)close every connected namespace socket in the same Manager, without closing the server or affecting independent Managers.This models observable logic-layer state rather than a transport. The affected sockets still use their ordinary acknowledgement, id, room, roster, and manual-reconnect lifecycle. Engine.IO transport, fallback, heartbeat, and automatic network reconnection remain outside the project scope.
Ignoring
closewas rejected because the affected socket set, event reasons, and event order remain observable without a real network. Using the SmocketServeras the group was also rejected because one server may host several independent client Managers; that approach would close unrelated clients.Follow-up and release boundary
Issue #254 owns the implementation. It covers Manager lookup and identity, repeated-namespace and explicit opt-out groups,
disconnect(false)anddisconnect(true), lifecycle reasons and ordering, independent-manager isolation, existing acknowledgement and membership cleanup, manual reconnect, the fluent return tracked by #233, conformance generation, and the browser gate.Until #254 lands,
docs/differences.mdrecords the ignoredtrueflag as a known gap rather than an intentional divergence. The decision index and v1 roadmap now link ADR 0028 and its implementation dependency. ADR 0019 classifies the eventual newly covered Socket.IO surface as minor after 1.0 and patch before 1.0.Related issue
Closes #236
Checklist