Add TypeScript TCP peer helper

This commit is contained in:
Meta Vens 2026-06-16 12:15:23 +01:00
commit 805539384e
6 changed files with 105 additions and 17 deletions

View file

@ -167,7 +167,10 @@ Current progress:
over either the compatibility `Duplex` stream path or the transport
connection path, while the TypeScript interop peer now accepts and dials TCP
peers through `TcpFramedTransportConnection` so the parity harness exercises
the shared port instead of raw socket framing.
the shared port instead of raw socket framing. `createTcpFramedCultNetPeer`
gives application callers the same transport-first path without hand-building
the profile and adapter; raw `Duplex` peer construction is now explicitly the
compatibility lane.
- Python now has the same `tcp_framed` transport profile helper plus a
synchronous `TcpFramedTransportConnection` with `send`, `receive`, `close`,
and stats. `CultNetRawClient`, database subscriptions, and the local
@ -315,11 +318,13 @@ Current progress:
contact hints. The facade delegates to the existing Rust RUDP socket
transport; discovery contact remains separate from trust, which is still
gated by the authority lease catalog.
- The remaining parity work is to move the remaining LiteNetLib/WebSocket
service bodies behind their shared transport ports, then wire any remaining
daemon/socket reconnect loops through the shared controller. The core
schema-message RUDP matrix is live in the TypeScript interop gate; broader
service adoption remains the unclaimed layer.
- The remaining parity work is to finish production service-body adoption
behind the shared transport ports, then wire any remaining daemon/socket
reconnect loops through the shared controller. C# built-in LiteNetLib service
wrappers now route through `CultNetServerPeer`, TypeScript exposes a
transport-first TCP peer helper, and the core schema-message RUDP matrix is
live in the TypeScript interop gate; broader service adoption remains the
unclaimed layer.
## RUDP Packet Contract V0

View file

@ -32,7 +32,7 @@ CultMesh.
| --- | --- | --- | --- |
| C# | Reference implementation and production game/server substrate | CultCache typed documents and SoA, CultNet schema-v0, LiteNetLib production path with adapter profile, shared transport profiles, shared RUDP socket transport, RUDP reconnect policy/controller and reconnect-loop helper, LiteNetLib client reconnect-controller adoption, CultMesh node/session/catalog/stream/simulation surfaces | No need to abandon LiteNetLib before the CultNet adapter fully owns production service adoption |
| Python | Package runtime, local daemon endpoint, raw interop peer, typed state participant | CultCache/CultNet/CultMesh package surface, schema catalogs, shard catalogs/logs, local TCP CultMesh server, session/prediction/simulation fact helpers, authority leases, streams, RUDP codec/session/socket transport, RUDP reconnect policy/controller and reconnect-loop helper, schema-v0 MessagePack over RUDP evidence, benchmark evidence against C# cache paths | Universal C# throughput, full C# daemon/server stack, and RUDP as the only public service pipe |
| TypeScript | Node/browser-adjacent projection and interop runtime | CultCache parity tests, CultNet schema-v0 peer, transport profiles, TCP-framed transport port, shared RUDP socket transport, RUDP reconnect policy/controller, RUDP reconnect-loop helper, local CultMesh node/catalog/authority/stream ergonomics | Full C# game session/server stack |
| TypeScript | Node/browser-adjacent projection and interop runtime | CultCache parity tests, CultNet schema-v0 peer, transport profiles, TCP-framed transport port and peer helper, shared RUDP socket transport, RUDP reconnect policy/controller, RUDP reconnect-loop helper, local CultMesh node/catalog/authority/stream ergonomics | Full C# game session/server stack |
| Rust | Low-level cache/transport/runtime substrate | CultCache/CultNet interop lane, transport profiles, TCP-framed port, shared RUDP codec/session/socket transport, RUDP reconnect policy/controller and reconnect-loop helper, schema-v0 MessagePack over RUDP evidence, small CultMesh facade for peer cards, authority leases, RUDP endpoint parsing, and peer-card RUDP client construction | Full CultMesh game-session/server facade, stream catalog, or production game-session server |
| Kotlin | JVM/Android client substrate | Typed MessagePack cache, schema/shard catalogs, authority leases, stream catalog, branded `CultMesh` facade, WebSocket transport profile/connection helper, RUDP client/server sugar, RUDP reconnect policy/controller and reconnect-loop helper, schema-v0 MessagePack over RUDP evidence | C# SoA store, full C# server daemon, or Unity hot-loop memory layout |
@ -57,9 +57,11 @@ CultMesh.
## Remaining Work Before A Full Completion Claim
- Broaden service adoption so remaining daemon and production paths use the
shared transport port consistently instead of keeping LiteNetLib/WebSocket
ownership in individual bodies.
- Broaden production service adoption so remaining daemon paths use the shared
transport port consistently. The C# built-in LiteNetLib service wrappers now
route through transport-aware peer context, and TypeScript TCP peer creation
has a transport-first helper; broader daemon adoption remains the unclaimed
layer.
- Extend RUDP adoption through daemon/socket reconnect loops. RUDP profiles now
advertise the portable reconnect policy, runtime-local tests prove the shared
controller across the targeted runtimes, and the C# LiteNetLib client plus