Disconnect

Message used to cleanly disconnect a current connection.

Request

A Disconnectmessage can be sent anytime to close an ongoing connection. It can be initiated both by the server or the client.

Once sent or received, it is expected that the connection is closed.

FieldValueDescription

Message Type

0x04

Disconnect

Message Size

Remaining Message Length

Body

NameFieldTypeMandatoryDescription

Stream Id

0x01

varint

Disconnect Stream Identifier. Not required if acknowledgement is not expected from the other side.

Parameters

0x02

any

Disconnect reason.

Payload

0x03

any

Additional disconnect information.

Response

Last updated