Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 1.35 KB

disconnect.md

File metadata and controls

22 lines (12 loc) · 1.35 KB
description
Message used to cleanly disconnect a current connection.

Disconnect

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.

Header

FieldValueDescription
Message Type0x04Disconnect
Message SizevarintRemaining Message Length

Body

NameFieldTypeMandatoryDescription
Stream Id0x01falseDisconnect Stream Identifier. Not required if acknowledgement is not expected from the other side.
Parameters0x02falseDisconnect reason.
Payload0x03falseAdditional disconnect information.

Response