mqtt 5.0.0-beta.3 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/README.md +43 -4
  2. package/build/package.json +162 -0
  3. package/build/src/bin/mqtt.d.ts +2 -0
  4. package/build/src/bin/mqtt.js +27 -0
  5. package/build/src/bin/mqtt.js.map +1 -0
  6. package/build/src/bin/pub.d.ts +2 -0
  7. package/build/src/bin/pub.js +146 -0
  8. package/build/src/bin/pub.js.map +1 -0
  9. package/build/src/bin/sub.d.ts +2 -0
  10. package/build/src/bin/sub.js +121 -0
  11. package/build/src/bin/sub.js.map +1 -0
  12. package/build/src/lib/TypedEmitter.d.ts +11 -0
  13. package/build/src/lib/TypedEmitter.js +13 -0
  14. package/build/src/lib/TypedEmitter.js.map +1 -0
  15. package/build/src/lib/client.d.ts +220 -0
  16. package/build/src/lib/client.js +1204 -0
  17. package/build/src/lib/client.js.map +1 -0
  18. package/build/src/lib/connect/ali.d.ts +3 -0
  19. package/build/src/lib/connect/ali.js +113 -0
  20. package/build/src/lib/connect/ali.js.map +1 -0
  21. package/build/src/lib/connect/index.d.ts +9 -0
  22. package/build/src/lib/connect/index.js +169 -0
  23. package/build/src/lib/connect/index.js.map +1 -0
  24. package/build/src/lib/connect/tcp.d.ts +3 -0
  25. package/build/src/lib/connect/tcp.js +18 -0
  26. package/build/src/lib/connect/tcp.js.map +1 -0
  27. package/build/src/lib/connect/tls.d.ts +3 -0
  28. package/build/src/lib/connect/tls.js +38 -0
  29. package/build/src/lib/connect/tls.js.map +1 -0
  30. package/build/src/lib/connect/ws.d.ts +3 -0
  31. package/build/src/lib/connect/ws.js +212 -0
  32. package/build/src/lib/connect/ws.js.map +1 -0
  33. package/build/src/lib/connect/wx.d.ts +3 -0
  34. package/build/src/lib/connect/wx.js +117 -0
  35. package/build/src/lib/connect/wx.js.map +1 -0
  36. package/build/src/lib/default-message-id-provider.d.ts +16 -0
  37. package/build/src/lib/default-message-id-provider.js +24 -0
  38. package/build/src/lib/default-message-id-provider.js.map +1 -0
  39. package/build/src/lib/handlers/ack.d.ts +48 -0
  40. package/build/src/lib/handlers/ack.js +129 -0
  41. package/build/src/lib/handlers/ack.js.map +1 -0
  42. package/build/src/lib/handlers/auth.d.ts +3 -0
  43. package/build/src/lib/handlers/auth.js +30 -0
  44. package/build/src/lib/handlers/auth.js.map +1 -0
  45. package/build/src/lib/handlers/connack.d.ts +3 -0
  46. package/build/src/lib/handlers/connack.js +48 -0
  47. package/build/src/lib/handlers/connack.js.map +1 -0
  48. package/build/src/lib/handlers/index.d.ts +3 -0
  49. package/build/src/lib/handlers/index.js +64 -0
  50. package/build/src/lib/handlers/index.js.map +1 -0
  51. package/build/src/lib/handlers/publish.d.ts +3 -0
  52. package/build/src/lib/handlers/publish.js +106 -0
  53. package/build/src/lib/handlers/publish.js.map +1 -0
  54. package/build/src/lib/handlers/pubrel.d.ts +3 -0
  55. package/build/src/lib/handlers/pubrel.js +25 -0
  56. package/build/src/lib/handlers/pubrel.js.map +1 -0
  57. package/build/src/lib/is-browser.d.ts +2 -0
  58. package/build/src/lib/is-browser.js +8 -0
  59. package/build/src/lib/is-browser.js.map +1 -0
  60. package/build/src/lib/shared.d.ts +18 -0
  61. package/build/src/lib/shared.js +35 -0
  62. package/build/src/lib/shared.js.map +1 -0
  63. package/build/src/lib/store.d.ts +24 -0
  64. package/build/src/lib/store.js +80 -0
  65. package/build/src/lib/store.js.map +1 -0
  66. package/build/src/lib/topic-alias-recv.d.ts +9 -0
  67. package/build/src/lib/topic-alias-recv.js +24 -0
  68. package/build/src/lib/topic-alias-recv.js.map +1 -0
  69. package/build/src/lib/topic-alias-send.d.ts +13 -0
  70. package/build/src/lib/topic-alias-send.js +56 -0
  71. package/build/src/lib/topic-alias-send.js.map +1 -0
  72. package/build/src/lib/unique-message-id-provider.d.ts +11 -0
  73. package/build/src/lib/unique-message-id-provider.js +26 -0
  74. package/build/src/lib/unique-message-id-provider.js.map +1 -0
  75. package/build/src/lib/validations.d.ts +2 -0
  76. package/build/src/lib/validations.js +32 -0
  77. package/build/src/lib/validations.js.map +1 -0
  78. package/build/src/mqtt.d.ts +10 -0
  79. package/build/src/mqtt.js +49 -0
  80. package/build/src/mqtt.js.map +1 -0
  81. package/build/tsconfig.build.tsbuildinfo +1 -0
  82. package/dist/mqtt.js +2726 -3493
  83. package/dist/mqtt.min.js +4 -4
  84. package/doc/subscribe.txt +1 -1
  85. package/package.json +49 -29
  86. package/{bin/mqtt.js → src/bin/mqtt.ts} +11 -6
  87. package/src/bin/pub.ts +171 -0
  88. package/src/bin/sub.ts +146 -0
  89. package/src/lib/TypedEmitter.ts +45 -0
  90. package/{lib/client.js → src/lib/client.ts} +895 -252
  91. package/{lib/connect/ali.js → src/lib/connect/ali.ts} +13 -11
  92. package/src/lib/connect/index.ts +241 -0
  93. package/{lib/connect/tcp.js → src/lib/connect/tcp.ts} +8 -4
  94. package/{lib/connect/tls.js → src/lib/connect/tls.ts} +10 -8
  95. package/{lib/connect/ws.js → src/lib/connect/ws.ts} +52 -36
  96. package/{lib/connect/wx.js → src/lib/connect/wx.ts} +18 -9
  97. package/src/lib/default-message-id-provider.ts +99 -0
  98. package/{lib/handlers/ack.js → src/lib/handlers/ack.ts} +17 -19
  99. package/src/lib/handlers/auth.ts +44 -0
  100. package/{lib/handlers/connack.js → src/lib/handlers/connack.ts} +15 -11
  101. package/{lib/handlers/index.js → src/lib/handlers/index.ts} +8 -7
  102. package/{lib/handlers/publish.js → src/lib/handlers/publish.ts} +73 -57
  103. package/src/lib/handlers/pubrel.ts +27 -0
  104. package/{lib/is-browser.js → src/lib/is-browser.ts} +5 -4
  105. package/src/lib/shared.ts +73 -0
  106. package/{lib/store.js → src/lib/store.ts} +61 -16
  107. package/{lib/topic-alias-recv.js → src/lib/topic-alias-recv.ts} +10 -6
  108. package/{lib/topic-alias-send.js → src/lib/topic-alias-send.ts} +19 -11
  109. package/{lib/unique-message-id-provider.js → src/lib/unique-message-id-provider.ts} +10 -7
  110. package/{lib/validations.js → src/lib/validations.ts} +2 -6
  111. package/src/mqtt.ts +26 -0
  112. package/bin/pub.js +0 -159
  113. package/bin/sub.js +0 -141
  114. package/lib/connect/index.js +0 -175
  115. package/lib/default-message-id-provider.js +0 -63
  116. package/lib/handlers/auth.js +0 -34
  117. package/lib/handlers/pubrel.js +0 -24
  118. package/mqtt.js +0 -21
  119. package/types/index.d.ts +0 -30
  120. package/types/lib/client-options.d.ts +0 -224
  121. package/types/lib/client.d.ts +0 -273
  122. package/types/lib/connect/index.d.ts +0 -19
  123. package/types/lib/default-message-id-provider.d.ts +0 -49
  124. package/types/lib/message-id-provider.d.ts +0 -40
  125. package/types/lib/store-options.d.ts +0 -6
  126. package/types/lib/store.d.ts +0 -46
  127. package/types/lib/unique-message-id-provider.d.ts +0 -48
@@ -1,273 +0,0 @@
1
- /// <reference types="node" />
2
-
3
- import * as events from 'events'
4
- import {
5
- IClientOptions,
6
- IClientPublishOptions,
7
- IClientSubscribeOptions,
8
- IClientSubscribeProperties,
9
- IClientReconnectOptions
10
- } from './client-options'
11
- import { Store } from './store'
12
- import { IAuthPacket, IPublishPacket, IDisconnectPacket, IConnackPacket, Packet, QoS } from 'mqtt-packet'
13
-
14
- export interface ISubscriptionGrant {
15
- /**
16
- * is a subscribed to topic
17
- */
18
- topic: string
19
- /**
20
- * is the granted qos level on it, may return 128 on error
21
- */
22
- qos: QoS | number
23
- /*
24
- * no local flag
25
- * */
26
- nl?: boolean,
27
- /*
28
- * Retain As Published flag
29
- * */
30
- rap?: boolean,
31
- /*
32
- * Retain Handling option
33
- * */
34
- rh?: number
35
- }
36
- export interface ISubscriptionRequest {
37
- /**
38
- * is a subscribed to topic
39
- */
40
- topic: string
41
- /**
42
- * is the granted qos level on it
43
- */
44
- qos: QoS
45
- /*
46
- * no local flag
47
- * */
48
- nl?: boolean,
49
- /*
50
- * Retain As Published flag
51
- * */
52
- rap?: boolean,
53
- /*
54
- * Retain Handling option
55
- * */
56
- rh?: number
57
- }
58
- export interface ISubscriptionMap {
59
- /**
60
- * object which has topic names as object keys and as value the options, like {'test1': {qos: 0}, 'test2': {qos: 2}}.
61
- */
62
- [topic: string]: {
63
- qos: QoS,
64
- nl?: boolean,
65
- rap?: boolean,
66
- rh?: number
67
- }
68
- }
69
-
70
- export declare type OnConnectCallback = (packet: IConnackPacket) => void
71
- export declare type OnDisconnectCallback = (packet: IDisconnectPacket) => void
72
- export declare type ClientSubscribeCallback = (err: Error | null, granted: ISubscriptionGrant[]) => void
73
- export declare type OnMessageCallback = (topic: string, payload: Buffer, packet: IPublishPacket) => void
74
- export declare type OnPacketCallback = (packet: Packet) => void
75
- export declare type OnCloseCallback = () => void
76
- export declare type OnErrorCallback = (error: Error) => void
77
- export declare type PacketCallback = (error?: Error, packet?: Packet) => any
78
- export declare type CloseCallback = (error?: Error) => void
79
-
80
- export interface IStream extends events.EventEmitter {
81
- pipe (to: any): any
82
- destroy (): any
83
- end (): any
84
- }
85
- /**
86
- * MqttClient constructor
87
- *
88
- * @param {Stream} stream - stream
89
- * @param {Object} [options] - connection options
90
- * (see Connection#connect)
91
- */
92
- export declare class MqttClient extends events.EventEmitter {
93
- public connected: boolean
94
- public disconnecting: boolean
95
- public disconnected: boolean
96
- public reconnecting: boolean
97
- public incomingStore: Store
98
- public outgoingStore: Store
99
- public options: IClientOptions
100
- public queueQoSZero: boolean
101
-
102
- static defaultId (): string
103
-
104
- constructor (streamBuilder: (client: MqttClient) => IStream, options: IClientOptions)
105
-
106
- public on (event: 'connect', cb: OnConnectCallback): this
107
- public on (event: 'message', cb: OnMessageCallback): this
108
- public on (event: 'packetsend' | 'packetreceive', cb: OnPacketCallback): this
109
- public on (event: 'disconnect', cb: OnDisconnectCallback): this
110
- public on (event: 'error', cb: OnErrorCallback): this
111
- public on (event: 'close', cb: OnCloseCallback): this
112
- public on (event: 'end' | 'reconnect' | 'offline' | 'outgoingEmpty', cb: () => void): this
113
- public on (event: string, cb: Function): this
114
-
115
- public once (event: 'connect', cb: OnConnectCallback): this
116
- public once (event: 'message', cb: OnMessageCallback): this
117
- public once (event: 'packetsend' | 'packetreceive', cb: OnPacketCallback): this
118
- public once (event: 'disconnect', cb: OnDisconnectCallback): this
119
- public once (event: 'error', cb: OnErrorCallback): this
120
- public once (event: 'close', cb: OnCloseCallback): this
121
- public once (event: 'end' | 'reconnect' | 'offline' | 'outgoingEmpty', cb: () => void): this
122
- public once (event: string, cb: Function): this
123
-
124
- /**
125
- * Setup the event handlers in the inner stream, sends `connect` and `auth` packets
126
- */
127
- public connect(): this
128
-
129
- /**
130
- * publish - publish <message> to <topic>
131
- *
132
- * @param {String} topic - topic to publish to
133
- * @param {(String|Buffer)} message - message to publish
134
- *
135
- * @param {Object} [opts] - publish options, includes:
136
- * @param {Number} [opts.qos] - qos level to publish on
137
- * @param {Boolean} [opts.retain] - whether or not to retain the message
138
- * @param {Function}[opts.cbStorePut] - function(){}
139
- * called when message is put into `outgoingStore`
140
- *
141
- * @param {Function} [callback] - function(err){}
142
- * called when publish succeeds or fails
143
- *
144
- * @returns {Client} this - for chaining
145
- * @api public
146
- *
147
- * @example client.publish('topic', 'message')
148
- * @example
149
- * client.publish('topic', 'message', {qos: 1, retain: true})
150
- * @example client.publish('topic', 'message', console.log)
151
- */
152
- public publish (topic: string, message: string | Buffer,
153
- opts: IClientPublishOptions, callback?: PacketCallback): this
154
- public publish (topic: string, message: string | Buffer,
155
- callback?: PacketCallback): this
156
-
157
- /**
158
- * subscribe - subscribe to <topic>
159
- *
160
- * @param {String, Array, Object} topic - topic(s) to subscribe to, supports objects in the form {'topic': qos}
161
- * @param {Object} [opts] - optional subscription options, includes:
162
- * @param {Number} [opts.qos] - subscribe qos level
163
- * @param {Function} [callback] - function(err, granted){} where:
164
- * {Error} err - subscription error (none at the moment!)
165
- * {Array} granted - array of {topic: 't', qos: 0}
166
- * @returns {MqttClient} this - for chaining
167
- * @api public
168
- * @example client.subscribe('topic')
169
- * @example client.subscribe('topic', {qos: 1})
170
- * @example client.subscribe({'topic': 0, 'topic2': 1}, console.log)
171
- * @example client.subscribe('topic', console.log)
172
- */
173
- public subscribe (topic:
174
- string
175
- | string[]
176
- | ISubscriptionMap,
177
- opts:
178
- IClientSubscribeOptions
179
- | IClientSubscribeProperties, callback?: ClientSubscribeCallback): this
180
- public subscribe (topic:
181
- string
182
- | string[]
183
- | ISubscriptionMap, callback?: ClientSubscribeCallback): this
184
-
185
- /**
186
- * unsubscribe - unsubscribe from topic(s)
187
- *
188
- * @param {String, Array} topic - topics to unsubscribe from
189
- * @param {Object} opts - opts of unsubscribe
190
- * @param {Function} [callback] - callback fired on unsuback
191
- * @returns {MqttClient} this - for chaining
192
- * @api public
193
- * @example client.unsubscribe('topic')
194
- * @example client.unsubscribe('topic', console.log)
195
- * @example client.unsubscribe('topic', opts, console.log)
196
- */
197
- public unsubscribe (topic: string | string[], opts?: Object, callback?: PacketCallback): this
198
-
199
- /**
200
- * end - close connection
201
- *
202
- * @returns {MqttClient} this - for chaining
203
- * @param {Boolean} force - do not wait for all in-flight messages to be acked
204
- * @param {Object} opts - opts disconnect
205
- * @param {Function} cb - called when the client has been closed
206
- *
207
- * @api public
208
- */
209
- public end (force?: boolean, opts?: Object, cb?: CloseCallback): this
210
-
211
- /**
212
- * removeOutgoingMessage - remove a message in outgoing store
213
- * the outgoing callback will be called withe Error('Message removed') if the message is removed
214
- *
215
- * @param {Number} mid - messageId to remove message
216
- * @returns {MqttClient} this - for chaining
217
- * @api public
218
- *
219
- * @example client.removeOutgoingMessage(client.getLastMessageId());
220
- */
221
- public removeOutgoingMessage (mid: number): this
222
-
223
- /**
224
- * reconnect - connect again using the same options as connect()
225
- *
226
- * @param {Object} [opts] - optional reconnect options, includes:
227
- * {Store} incomingStore - a store for the incoming packets
228
- * {Store} outgoingStore - a store for the outgoing packets
229
- * if opts is not given, current stores are used
230
- *
231
- * @returns {MqttClient} this - for chaining
232
- *
233
- * @api public
234
- */
235
- public reconnect (opts?: IClientReconnectOptions): this
236
-
237
- /**
238
- * Handle messages with backpressure support, one at a time.
239
- * Override at will.
240
- *
241
- * @param packet packet the packet
242
- * @param callback callback call when finished
243
- * @api public
244
- */
245
- public handleMessage (packet: Packet, callback: PacketCallback): void
246
-
247
- /**
248
- * Handle auth packages for MQTT 5 enhanced authentication methods such
249
- * as challenge response authentication.
250
- *
251
- * Challenge-response authentication flow would look something like this:
252
- *
253
- * --> CONNECT | authMethod = "mathChallenge" -->
254
- * <-- AUTH | authMethod = "mathChallenge", authData = "12 + 34" <--
255
- * --> AUTH | authMethod = "mathChallenge", authData = "46" -->
256
- * <-- CONNACK | reasonCode = SUCCESS <--
257
- *
258
- * This form of authentication has several advantages over traditional
259
- * credential-based approaches. For instance authentication without the direct
260
- * exchange of authentication secrets.
261
- *
262
- * @param packet the auth packet to handle
263
- * @param callback call when finished
264
- * @api public
265
- */
266
- public handleAuth (packet: IAuthPacket, callback: PacketCallback): void
267
-
268
- /**
269
- * getLastMessageId
270
- */
271
- public getLastMessageId (): number
272
- }
273
- export { IClientOptions }
@@ -1,19 +0,0 @@
1
- import { IClientOptions, MqttClient } from '../client'
2
-
3
- /**
4
- * connect - connect to an MQTT broker.
5
- *
6
- * @param {Object} opts - see MqttClient#constructor
7
- */
8
- declare function connect (opts: IClientOptions): MqttClient
9
-
10
- /**
11
- * connect - connect to an MQTT broker.
12
- *
13
- * @param {String} brokerUrl - url of the broker
14
- * @param {Object} opts - see MqttClient#constructor
15
- */
16
- declare function connect (brokerUrl: string, opts?: IClientOptions): MqttClient
17
-
18
- export { connect }
19
- export { MqttClient }
@@ -1,49 +0,0 @@
1
- import { IMessageIdProvider } from './message-id-provider'
2
-
3
- /**
4
- * DefaultMessageIdProvider
5
- * This is compatible behavior with the original MQTT.js internal messageId allocation.
6
- */
7
- declare class DefaultMessageIdProvider implements IMessageIdProvider {
8
- /**
9
- * DefaultMessageIdProvider constructor.
10
- * Randomize initial messageId
11
- * @constructor
12
- */
13
- constructor ()
14
-
15
- /**
16
- * Return the current messageId and increment the current messageId.
17
- * @return {Number} - messageId
18
- */
19
- public allocate (): Number | null
20
-
21
- /**
22
- * Get the last allocated messageId.
23
- * @return {Number} - messageId.
24
- */
25
- public getLastAllocated (): Number | null
26
-
27
- /**
28
- * Register the messageId.
29
- * This function actually nothing and always return true.
30
- * @param {Number} num - The messageId to request use.
31
- * @return {Boolean} - If `num` was not occupied, then return true, otherwise return false.
32
- */
33
- public register (num: Number): Boolean
34
-
35
- /**
36
- * Deallocate the messageId.
37
- * This function actually nothing.
38
- * @param {Number} num - The messageId to deallocate.
39
- */
40
- public deallocate (num: Number): void
41
-
42
- /**
43
- * Clear all occupied messageIds.
44
- * This function actually nothing.
45
- */
46
- public clear (): void
47
- }
48
-
49
- export { DefaultMessageIdProvider }
@@ -1,40 +0,0 @@
1
- /**
2
- * MessageIdProvider
3
- */
4
- declare interface IMessageIdProvider {
5
- /**
6
- * Allocate the first vacant messageId. The messageId become occupied status.
7
- * @return {Number} - The first vacant messageId. If all messageIds are occupied, return null.
8
- */
9
- allocate (): Number | null
10
-
11
- /**
12
- * Get the last allocated messageId.
13
- * @return {Number} - messageId.
14
- */
15
- getLastAllocated (): Number | null
16
-
17
- /**
18
- * Register the messageId. The messageId become occupied status.
19
- * If the messageId has already been occupied, then return false.
20
- * @param {Number} num - The messageId to request use.
21
- * @return {Boolean} - If `num` was not occupied, then return true, otherwise return false.
22
- */
23
- register (num: Number): Boolean
24
-
25
- /**
26
- * Deallocate the messageId. The messageId become vacant status.
27
- * @param {Number} num - The messageId to deallocate. The messageId must be occupied status.
28
- * In other words, the messageId must be allocated by allocate() or
29
- * occupied by register().
30
- */
31
- deallocate (num: Number): void
32
-
33
- /**
34
- * Clear all occupied messageIds.
35
- * The all messageIds are set to vacant status.
36
- */
37
- clear (): void
38
- }
39
-
40
- export { IMessageIdProvider }
@@ -1,6 +0,0 @@
1
- export interface IStoreOptions {
2
- /**
3
- * true, clear _inflights at close
4
- */
5
- clean?: boolean
6
- }
@@ -1,46 +0,0 @@
1
- import {
2
- IStoreOptions
3
- } from './store-options'
4
-
5
- /**
6
- * In-memory implementation of the message store
7
- * This can actually be saved into files.
8
- *
9
- */
10
- declare class Store {
11
- /**
12
- * Store constructor
13
- *
14
- * @param {Object} [options] - store options
15
- */
16
- constructor (options: IStoreOptions)
17
-
18
- /**
19
- * Adds a packet to the store, a packet is
20
- * anything that has a messageId property.
21
- *
22
- */
23
- public put (packet: any, cb?: Function): this
24
-
25
- /**
26
- * Creates a stream with all the packets in the store
27
- *
28
- */
29
- public createStream (): any
30
-
31
- /**
32
- * deletes a packet from the store.
33
- */
34
- public del (packet: any, cb: Function): this
35
-
36
- /**
37
- * get a packet from the store.
38
- */
39
- public get (packet: any, cb: Function): this
40
-
41
- /**
42
- * Close the store
43
- */
44
- public close (cb: Function): void
45
- }
46
- export { Store }
@@ -1,48 +0,0 @@
1
- import { IMessageIdProvider } from './message-id-provider'
2
-
3
- /**
4
- * UniqueMessageIdProvider
5
- */
6
- declare class UniqueMessageIdProvider implements IMessageIdProvider {
7
- /**
8
- * UniqueMessageIdProvider constructor.
9
- * @constructor
10
- */
11
- constructor ()
12
-
13
- /**
14
- * Allocate the first vacant messageId. The messageId become occupied status.
15
- * @return {Number} - The first vacant messageId. If all messageIds are occupied, return null.
16
- */
17
- public allocate (): Number | null
18
-
19
- /**
20
- * Get the last allocated messageId.
21
- * @return {Number} - messageId.
22
- */
23
- public getLastAllocated (): Number | null
24
-
25
- /**
26
- * Register the messageId. The messageId become occupied status.
27
- * If the messageId has already been occupied, then return false.
28
- * @param {Number} num - The messageId to request use.
29
- * @return {Boolean} - If `num` was not occupied, then return true, otherwise return false.
30
- */
31
- public register (num: Number): Boolean
32
-
33
- /**
34
- * Deallocate the messageId. The messageId become vacant status.
35
- * @param {Number} num - The messageId to deallocate. The messageId must be occupied status.
36
- * In other words, the messageId must be allocated by allocate() or
37
- * occupied by register().
38
- */
39
- public deallocate (num: Number): void
40
-
41
- /**
42
- * Clear all occupied messageIds.
43
- * The all messageIds are set to vacant status.
44
- */
45
- public clear (): void
46
- }
47
-
48
- export { UniqueMessageIdProvider }