Message used to cleanly disconnect a current connection.
A Disconnectmessage can be sent anytime to close an ongoing connection. It can be initiated both by the server or the client.
Disconnect
Once sent or received, it is expected that the connection is closed.
Message Type
0x04
Message Size
varint
Remaining Message Length
Stream Id
0x01
Disconnect Stream Identifier. Not required if acknowledgement is not expected from the other side.
Parameters
0x02
Disconnect reason.
Payload
0x03
Additional disconnect information.
Last updated 4 months ago