transports_tcp (1.0.0)
Published 2026-09-12 03:52:24 +00:00 by Platform
Installation
dart pub add transports_tcp:1.0.0 --hosted-url=About this package
TCP transport implementing package:transports (dart:io Socket, length-prefixed framing).
Dart.Package.Transports.Tcp
TCP transport implementing
Dart.Package.Transports
on dart:io (Socket/ServerSocket) — ported from
CSharp.Package.Transports.Tcp.
VM-only — raw sockets don't exist on Flutter web. Use
Dart.Package.Transports.Websocket
for anything that needs to run in a browser.
Each message is framed as a 4-byte little-endian length prefix followed by the payload, matching the C# transport's framing byte-for-byte — raw TCP has no message boundaries of its own, unlike WebSocket.
Versioning and publishing
Version.txt is the exact version that gets published — a push to main
publishes it only when that version isn't on the feed yet. Pushes to any
other branch only resolve and test.