TsgcTURNClient › Events
Events you can handle, grouped by purpose, followed by the full alphabetical list.
| Name | Description |
|---|---|
| OnSTUNBeforeSend | Fires just before a STUN/TURN message is sent to the server, allowing last-minute inspection or modification. |
| OnSTUNResponseSuccess | Fires when the server returns a success response to any STUN or TURN request. |
| OnSTUNResponseError | Fires when the server returns an error response (for example 401 Unauthorized or 437 Allocation Mismatch). |
| OnSTUNException | Fires when a transport, parsing or timeout exception occurs while processing a STUN/TURN message. |
| Name | Description |
|---|---|
| OnTURNAllocate | Fires after a successful ALLOCATE response; exposes the relayed IP address and port assigned by the server. |
| OnTURNRefresh | Fires after a successful REFRESH response, reporting the new allocation lifetime. |
| OnTURNCreatePermission | Fires after a successful CreatePermission response for the requested peer IP. |
| OnTURNChannelBind | Fires after a successful ChannelBind response; exposes the channel number assigned to the peer. |
| Name | Description |
|---|---|
| OnTURNDataIndication | Fires when the client receives a DATA Indication relayed from a peer that has no bound channel. |
| OnTURNChannelData | Fires when the client receives a ChannelData message relayed from a peer bound to a channel. |
| OnTURNICMPIndication | Fires when the server forwards an ICMP error received from a peer (for example unreachable or TTL exceeded). |
| Name | Description |
|---|---|
| OnSTUNBeforeSend | Fires just before a STUN/TURN message is sent to the server, allowing last-minute inspection or modification. |
| OnSTUNException | Fires when a transport, parsing or timeout exception occurs while processing a STUN/TURN message. |
| OnSTUNResponseError | Fires when the server returns an error response (for example 401 Unauthorized or 437 Allocation Mismatch). |
| OnSTUNResponseSuccess | Fires when the server returns a success response to any STUN or TURN request. |
| OnTURNAllocate | Fires after a successful ALLOCATE response; exposes the relayed IP address and port assigned by the server. |
| OnTURNChannelBind | Fires after a successful ChannelBind response; exposes the channel number assigned to the peer. |
| OnTURNChannelData | Fires when the client receives a ChannelData message relayed from a peer bound to a channel. |
| OnTURNCreatePermission | Fires after a successful CreatePermission response for the requested peer IP. |
| OnTURNDataIndication | Fires when the client receives a DATA Indication relayed from a peer that has no bound channel. |
| OnTURNICMPIndication | Fires when the server forwards an ICMP error received from a peer (for example unreachable or TTL exceeded). |
| OnTURNRefresh | Fires after a successful REFRESH response, reporting the new allocation lifetime. |