# DisconnectReason

## Content

# Enumeration: DisconnectReason

Defines the possible reasons for a disconnection.

## Table of contents

### Enumeration members

- [CLIENT\_DISCONNECT](DisconnectReason#client_disconnect)
- [PING\_TIMEOUT](DisconnectReason#ping_timeout)
- [SERVER\_DISCONNECT](DisconnectReason#server_disconnect)
- [TRANSPORT\_CLOSE](DisconnectReason#transport_close)
- [TRANSPORT\_ERROR](DisconnectReason#transport_error)

## Enumeration members

### <a id="client_disconnect" name="client_disconnect"></a> CLIENT\_DISCONNECT

• **CLIENT\_DISCONNECT**

Indicates the client intentionally disconnected.

___

### <a id="ping_timeout" name="ping_timeout"></a> PING\_TIMEOUT

• **PING\_TIMEOUT**

Indicates the client failed to respond with a PONG packet within the ping timeout period.

___

### <a id="server_disconnect" name="server_disconnect"></a> SERVER\_DISCONNECT

• **SERVER\_DISCONNECT**

Indicates the server intentionally disconnected.

___

### <a id="transport_close" name="transport_close"></a> TRANSPORT\_CLOSE

• **TRANSPORT\_CLOSE**

Indicates the transport connection was closed.

___

### <a id="transport_error" name="transport_error"></a> TRANSPORT\_ERROR

• **TRANSPORT\_ERROR**

Indicates an error occurred in the transport connection.
