Skip to content

Commit

Permalink
Merge c07ede6 into f1e5518
Browse files Browse the repository at this point in the history
  • Loading branch information
redboltz authored Jun 23, 2023
2 parents f1e5518 + c07ede6 commit c64bd8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,14 +350,14 @@ the `connect` event. Typically a `net.Socket`.
```js
customHandleAcks: function(topic, message, packet, done) {/*some logic wit colling done(error, reasonCode)*/}
```
* `topicAliasMaximum`: representing the Topic Alias Maximum value indicates the highest value that the Client will accept as a Topic Alias sent by the Server `number`. It is automatically set to CONNECT property.
* `autoUseTopicAlias`: enabling automatic Topic Alias using functionality
* `autoAssignTopicAlias`: enabling automatic Topic Alias assign functionality
* `properties`: properties MQTT 5.0.
`object` that supports the following properties:
* `sessionExpiryInterval`: representing the Session Expiry Interval in seconds `number`,
* `receiveMaximum`: representing the Receive Maximum value `number`,
* `maximumPacketSize`: representing the Maximum Packet Size the Client is willing to accept `number`,
* `topicAliasMaximum`: representing the Topic Alias Maximum value indicates the highest value that the Client will accept as a Topic Alias sent by the Server `number`,
* `requestResponseInformation`: The Client uses this value to request the Server to return Response Information in the CONNACK `boolean`,
* `requestProblemInformation`: The Client uses this value to indicate whether the Reason String or User Properties are sent in the case of failures `boolean`,
* `userProperties`: The User Property is allowed to appear multiple times to represent multiple name, value pairs `object`,
Expand Down
4 changes: 3 additions & 1 deletion types/lib/client-options.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,13 @@ export interface IClientOptions extends ISecureClientOptions {
}
}
transformWsUrl?: (url: string, options: IClientOptions, client: MqttClient) => string,
topicAliasMaximum?: number,
autoUseTopicAlias?: boolean,
autoAssignTopicAlias?: boolean,
properties?: {
sessionExpiryInterval?: number,
receiveMaximum?: number,
maximumPacketSize?: number,
topicAliasMaximum?: number,
requestResponseInformation?: boolean,
requestProblemInformation?: boolean,
userProperties?: UserProperties,
Expand Down

0 comments on commit c64bd8a

Please sign in to comment.