**_The following only examples are created in the simplest way. For more details, please see [Explanation Document](https://www.yuque.com/rrqm/touchsocket/index)。_**
**_The following only examples are created in the simplest way. For more details, please see [Explanation Document](http://rrqm_home.gitee.io/touchsocket)。_**
**【TcpService】**
```
TcpService service = new TcpService();
service.Connecting += (client, e) => { };//Some client is connecting
service.Connected += (client, e) => { };//There is a client connection
service.Disconnected += (client, e) => { };//There is a client that is cut off and connected
tcpClient.Connected += (client, e) => { };//Successfully connect to the server
tcpClient.Disconnected += (client, e) => { };//The connection is disconnected from the server, and it will not be triggered when the connection is unsuccessful.
tcpClient.Connected = (client, e) => { };//Successfully connect to the server
tcpClient.Disconnected = (client, e) => { };//The connection is disconnected from the server, and it will not be triggered when the connection is unsuccessful.