Connect
Message to authenticate and negotiate connection parameters.
Request
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 | Remaining Message Length |
Body
Name | Field | Type | Mandatory | Description |
---|---|---|---|---|
Stream Id | 0x01 | varint | Connect Stream identifier. | |
Parameters | 0x02 | any |
| |
Payload | 0x03 | any | Authentication payload to log-in with the server. | |
| 0x04 | varint | Establish a Keep Alive interval in seconds. Default keep-alive interval depends on server implementation. | |
| 0x05 | any | Defines the encoding mechanism that will be used when sending any values | |
| 0x06 | any | Specifies the protocol version to be used. |
Response
Last updated