Description
WatsonTcp is a C# library for building TCP clients and servers on .NET. It adds message framing on top of raw TCP so that whole messages are delivered reliably, and it detects disconnects quickly. Because of that framing, both ends of a connection need to use WatsonTcp, or the other side must speak WatsonTcp's message format, which is described in the project's FRAMING.md. For cases where framing is not wanted, the author points to the related libraries SuperSimpleTcp and CavemanTcp, the latter giving explicit control over how much data is read. As of version 6.5.0 the package is compatible with Native AOT and trimming on .NET 8 and later. WatsonTcp is part of the .NET Foundation, the source is on GitHub, and contributions through pull requests or issues are welcome.…
Highlights
- TCP client and server library for C# and .NET
- Built-in message framing for message-level delivery
- Fast disconnect detection
- Native AOT and trimming compatible since v6.5.0
- Part of the .NET Foundation
Ratings & Reviews
No ratings yet
Be the first to rate WatsonTcp.
People also visit
WatsonTcp FAQ
What is WatsonTcp?
A C# library for building TCP-based clients and servers with built-in message framing, reliable transmission and disconnect detection.
Can a WatsonTcp server talk to any TCP client?
Only if the client uses WatsonTcp or implements its framing format, documented in FRAMING.md. Both ends must agree on the framing.
What if I don't want framing?
The author suggests SuperSimpleTcp for a similar library without framing, or CavemanTcp for explicit control over how much data to read.
Does it support Native AOT?
Yes. Since v6.5.0 the package is marked AOT compatible and trimmable for net8.0 and later.
What are the best WatsonTcp alternatives?
Popular alternatives to WatsonTcp include WatsonWebserver, SocketChat and AnyCable. See all WatsonTcp alternatives





