Skip to content

refactor(transport): move the TCP listen protocol under the server transport - #34

Merged
raychen911 merged 1 commit into
mainfrom
refactor/tcp-protocol-under-transport
Oct 30, 2026
Merged

raychen911 merged 1 commit into
mainfrom
refactor/tcp-protocol-under-transport

Conversation

@Rook1ex

@Rook1ex Rook1ex commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Move TCPConnection and ConnWriter from trpc_sdk/protocol into trpc_sdk/transport/_server, next to the other listen connections.
  • Keep the public imports on trpc_sdk.transport, and keep re-exporting ConnWriter from trpc_sdk.runtime.
  • Drop the top-level protocol package. Relative imports avoid a cycle with the transport package init.

…ansport

TCPConnection and ConnWriter belong with the listen connections.

Co-authored-by: Cursor <cursoragent@cursor.com>
@raychen911
raychen911 merged commit c7f7a8c into main Oct 30, 2026
1 of 4 checks passed
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