TsgcTCPClient › Events
Events you can handle, grouped by purpose, followed by the full alphabetical list.
| Name | Description |
|---|---|
| OnConnect | Fires when the TCP connection to the server has been successfully established. |
| OnDisconnect | Fires when the TCP connection has been dropped or closed. |
| OnError | Fires every time a non-fatal error is reported on the TCP connection. |
| OnException | Fires whenever an unhandled exception is raised while processing the TCP connection. |
| Name | Description |
|---|---|
| OnMessage | Fires when raw bytes received from the TCP server can be surfaced as text. |
| OnBinary | Fires when raw bytes have been received from the TCP server. |
| Name | Description |
|---|---|
| OnBeforeHeartBeat | Fires before each HeartBeat tick so the application can send a custom keep-alive payload. |
| OnBeforeWatchDog | Fires before each WatchDog reconnection attempt so the application can adjust the target server or suppress the retry. |
| Name | Description |
|---|---|
| OnSSLGetHandler | Fires before the SSL handler is created so a custom handler instance can be supplied. |
| OnSSLAfterCreateHandler | Fires after the SSL handler has been created so its properties can be customized. |
| OnSSLVerifyPeer | Fires when VerifyCertificate is enabled so the application can accept or reject the server certificate. |
| OnSChannelVerifyPeer | Fires when SChannel is the TLS IOHandler so the application can verify the server certificate. |
| Name | Description |
|---|---|
| OnBeforeHeartBeat | Fires before each HeartBeat tick so the application can send a custom keep-alive payload. |
| OnBeforeWatchDog | Fires before each WatchDog reconnection attempt so the application can adjust the target server or suppress the retry. |
| OnBinary | Fires when raw bytes have been received from the TCP server. |
| OnConnect | Fires when the TCP connection to the server has been successfully established. |
| OnDisconnect | Fires when the TCP connection has been dropped or closed. |
| OnError | Fires every time a non-fatal error is reported on the TCP connection. |
| OnException | Fires whenever an unhandled exception is raised while processing the TCP connection. |
| OnMessage | Fires when raw bytes received from the TCP server can be surfaced as text. |
| OnSChannelVerifyPeer | Fires when SChannel is the TLS IOHandler so the application can verify the server certificate. |
| OnSSLAfterCreateHandler | Fires after the SSL handler has been created so its properties can be customized. |
| OnSSLGetHandler | Fires before the SSL handler is created so a custom handler instance can be supplied. |
| OnSSLVerifyPeer | Fires when VerifyCertificate is enabled so the application can accept or reject the server certificate. |