description |
Message to authenticate and negotiate connection parameters. |
A Connect message MUST be sent from the client to the server to authenticate and negotiate the connection parameters. This message MUST be the first one after establishing the connection. If any other message or data is received, the server MUST close the connection immediately.
Header
Field |
Value |
Description |
Message Type |
0x03 |
Connect |
Message Size |
varint |
Remaining Message Length |
Name | Field | Type | Mandatory | Description |
---|
Stream Id | 0x01 | | true | Connect Stream identifier. |
Parameters | 0x02 | | false | Connect parameters, that can be used to identify the authentication type. |
Payload | 0x03 | | true | Authentication payload to log-in with the server. |
Keep Alive | 0x04 | | false | Establish a Keep Alive interval in seconds. Default keep-alive interval depends on server implementation. |
Encoding | 0x05 | | false | Defines the encoding mechanism that will be used when sending any values |
Version | 0x06 | | false | Specifies the protocol version to be used. |