# RRQM/TouchSocket

TouchSocket is an integrated .NET networking framework that includes modules for socket, TCP, UDP, SSL, named pipes, HTTP, WebSocket, RPC, and more. It offers a one-stop solution for TCP packet issues and enables quick implementation of custom data message parsing using protocol templates.

Repository: https://github.com/RRQM/TouchSocket
Canonical: https://ross.abutalabs.com/products/touchsocket
Homepage: https://touchsocket.net/
Language: C#
License: Apache-2.0
License Family: permissive
Topics: iocp, memory-pool, tcp, rpc, udp, webapi, xmlrpc-server, jsonrpc-server, websocket, csharp, ssl-support, socket, socket-io, http, https, modbus, mqtt, mqtt-broker, mqtt-client
Last push: 2026-08-22T03:32:54+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 8, longevity 100
- inputs: {"age_days": 1975, "days_push": 11, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1276, forks 206 (observed 2026-08-28T04:04:13.056913+00:00)

## What it is
TouchSocket is a high-performance .NET networking library covering TCP, UDP, SSL, named pipes, HTTP, WebSocket, MQTT, Modbus, and RPC in a single integrated framework. It features an optimized IOCP implementation, memory pooling, a flexible data-adapter pipeline for custom protocol parsing, and a plugin ecosystem with heartbeat, reconnection, and SSL support.

## Use cases
- build a tcp server in c#
- handle tcp sticky packet problems
- create a websocket server in dotnet
- implement mqtt broker or client in c#
- add rpc to a .net application
- parse custom binary protocols over tcp
- build high-concurrency socket services with iocp
- communicate with modbus devices

## When to choose
- you need a unified .NET networking stack covering multiple protocols
- you need high-performance async socket handling with memory pooling
- you want built-in reconnection, heartbeat, and protocol adapters
- you target diverse .NET platforms including Unity, MAUI, and .NET Framework

## When to avoid
- you need a lightweight single-protocol client and prefer minimal dependencies
- you are outside the .NET ecosystem
- you need a full application server rather than a communication library

## Facets
- artifact type: library
- maturity: active
- function: http-server, websocket, rpc, middleware, plugin-system, networking, serialization, caching
- domain: networking, backend, developer-tools, iot, web-development
- platform: dotnet, cross-platform, windows
- tags: tcp, udp, ssl, mqtt, modbus, iocp, memory-pool, named-pipes, socket-programming, csharp, data-adapter, rpc, xmlrpc, webapi, messaging, linux, macos

## Member repositories
- RRQM/TouchSocket (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:13.056913+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:02:53.895060+00:00, confidence not recorded.
  - readme: https://github.com/RRQM/TouchSocket (fetched 2026-08-28T04:04:13.056913+00:00, sha d58d43c44762)
  - homepage: https://touchsocket.net/ (fetched 2026-08-29T12:14:04.511955+00:00, sha ad64dba4f571)
  - site_page: https://touchsocket.net/docs/current/video (fetched 2026-08-29T12:14:04.520835+00:00, sha c121360c090a)
  - site_page: https://touchsocket.net/docs/current (fetched 2026-08-29T12:14:04.522726+00:00, sha 1c9a7a8ab633)
  - site_page: https://touchsocket.net/docs/4.2 (fetched 2026-08-29T12:14:04.524404+00:00, sha 1c9a7a8ab633)
  - site_page: https://touchsocket.net/docs/4.1 (fetched 2026-08-29T12:14:04.525958+00:00, sha 1c9a7a8ab633)
  - site_page: https://touchsocket.net/docs/4.0 (fetched 2026-08-29T12:14:04.527490+00:00, sha 1c9a7a8ab633)
  - site_page: https://touchsocket.net/docs/3.1 (fetched 2026-08-29T12:14:04.529135+00:00, sha 1c9a7a8ab633)
- Data as of 2026-08-30T08:39:29.467469+00:00.
