DisconnectType

Classifies the cause of the disconnect. Can be used to decide e.g. when it makes sense to reconnect.

Values

ValueMeaning
requested

Initiated by the application.

graceful

The peer gracefully closed the connection.

error

Some abnormal network condition.

Meta