Repository navigation
docs: assign Socket types by package - #241
Conversation
|
Warning Review limit reached
Next review available in: 53 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 (3)
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 |
8f94b8f to
ae3741b
Compare
ae3741b to
5091101
Compare
Summary
socket.ioandsocket.io-clienteach export their own genericSocket, with four server generic positions and two direction-reversed client positions. Externalnode16andbundlerfixtures verified the valid calls and rejected the wrong event direction on both versions.smocketrootSocketname toServerSocketContract, matching the root's existingServerownership and allowing server code to replace only the package name inimport { Server, type Socket } from 'socket.io'.Socketname to a separatesmocket-clientpackage so client code can likewise replace onlysocket.io-clientwithsmocket-client. Reject client/server subpaths because they introduce a Smocket-specific import convention instead of preserving Socket.IO's package-level split.smocket-clientas a thin facade over the shared implementation, including synchronized versions and publication without duplicated connection state, while leaving executable ESM default and CommonJS callable behavior to that package-boundary decision.Socketconstructors unpromised because Socket.IO's public constructors and Smocket's internal constructors have different inputs, then classify the future type aliases through ADR 0019 and update the decision index and v1 roadmap dependency.Related issue
Closes #178
Checklist