mqtt5-wasm 0.2.3 → 0.3.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.
package/mqtt5_wasm.d.ts CHANGED
@@ -5,13 +5,13 @@ export class WasmBridgeConfig {
5
5
  free(): void;
6
6
  [Symbol.dispose](): void;
7
7
  constructor(name: string);
8
- add_topic(mapping: WasmTopicMapping): void;
9
8
  validate(): void;
9
+ add_topic(mapping: WasmTopicMapping): void;
10
+ set password(value: string | null | undefined);
11
+ set username(value: string | null | undefined);
10
12
  set client_id(value: string);
11
13
  set clean_start(value: boolean);
12
14
  set keep_alive_secs(value: number);
13
- set username(value: string | null | undefined);
14
- set password(value: string | null | undefined);
15
15
  }
16
16
 
17
17
  export enum WasmBridgeDirection {
@@ -23,20 +23,20 @@ export enum WasmBridgeDirection {
23
23
  export class WasmBroker {
24
24
  free(): void;
25
25
  [Symbol.dispose](): void;
26
- constructor();
27
- static with_config(wasm_config: WasmBrokerConfig): WasmBroker;
28
- add_user(username: string, password: string): Promise<void>;
29
- add_user_with_hash(username: string, password_hash: string): Promise<void>;
30
- remove_user(username: string): Promise<boolean>;
31
- has_user(username: string): Promise<boolean>;
26
+ add_bridge(config: WasmBridgeConfig, remote_port: MessagePort): Promise<void>;
32
27
  user_count(): Promise<number>;
33
- set_allow_anonymous(allow: boolean): void;
28
+ remove_user(username: string): Promise<boolean>;
29
+ static with_config(wasm_config: WasmBrokerConfig): WasmBroker;
30
+ list_bridges(): string[];
34
31
  static hash_password(password: string): string;
35
- create_client_port(): MessagePort;
36
- add_bridge(config: WasmBridgeConfig, remote_port: MessagePort): Promise<void>;
37
32
  remove_bridge(name: string): Promise<void>;
38
- list_bridges(): string[];
39
33
  stop_all_bridges(): Promise<void>;
34
+ add_user_with_hash(username: string, password_hash: string): Promise<void>;
35
+ create_client_port(): MessagePort;
36
+ set_allow_anonymous(allow: boolean): void;
37
+ constructor();
38
+ add_user(username: string, password: string): Promise<void>;
39
+ has_user(username: string): Promise<boolean>;
40
40
  }
41
41
 
42
42
  export class WasmBrokerConfig {
@@ -44,281 +44,305 @@ export class WasmBrokerConfig {
44
44
  [Symbol.dispose](): void;
45
45
  constructor();
46
46
  set max_clients(value: number);
47
- set session_expiry_interval_secs(value: number);
47
+ set maximum_qos(value: number);
48
48
  set max_packet_size(value: number);
49
- set topic_alias_maximum(value: number);
50
49
  set retain_available(value: boolean);
51
- set maximum_qos(value: number);
50
+ set topic_alias_maximum(value: number);
51
+ set server_keep_alive_secs(value: number | null | undefined);
52
+ set session_expiry_interval_secs(value: number);
53
+ set shared_subscription_available(value: boolean);
52
54
  set wildcard_subscription_available(value: boolean);
53
55
  set subscription_identifier_available(value: boolean);
54
- set shared_subscription_available(value: boolean);
55
- set server_keep_alive_secs(value: number | null | undefined);
56
56
  }
57
57
 
58
58
  export class WasmConnectOptions {
59
59
  free(): void;
60
60
  [Symbol.dispose](): void;
61
- constructor();
62
- set_will(will: WasmWillMessage): void;
63
61
  clear_will(): void;
64
62
  addUserProperty(key: string, value: string): void;
65
63
  clearUserProperties(): void;
66
- keepAlive: number;
64
+ constructor();
65
+ set_will(will: WasmWillMessage): void;
67
66
  cleanStart: boolean;
67
+ set password(value: Uint8Array);
68
68
  get username(): string | undefined;
69
69
  set username(value: string | null | undefined);
70
- set password(value: Uint8Array);
71
- get sessionExpiryInterval(): number | undefined;
72
- set sessionExpiryInterval(value: number | null | undefined);
70
+ keepAlive: number;
73
71
  get receiveMaximum(): number | undefined;
74
72
  set receiveMaximum(value: number | null | undefined);
73
+ protocolVersion: number;
75
74
  get maximumPacketSize(): number | undefined;
76
75
  set maximumPacketSize(value: number | null | undefined);
77
76
  get topicAliasMaximum(): number | undefined;
78
77
  set topicAliasMaximum(value: number | null | undefined);
79
- get requestResponseInformation(): boolean | undefined;
80
- set requestResponseInformation(value: boolean | null | undefined);
81
- get requestProblemInformation(): boolean | undefined;
82
- set requestProblemInformation(value: boolean | null | undefined);
83
78
  get authenticationMethod(): string | undefined;
84
79
  set authenticationMethod(value: string | null | undefined);
80
+ get sessionExpiryInterval(): number | undefined;
81
+ set sessionExpiryInterval(value: number | null | undefined);
85
82
  set authenticationData(value: Uint8Array);
83
+ get requestProblemInformation(): boolean | undefined;
84
+ set requestProblemInformation(value: boolean | null | undefined);
85
+ get requestResponseInformation(): boolean | undefined;
86
+ set requestResponseInformation(value: boolean | null | undefined);
87
+ }
88
+
89
+ export class WasmMessageProperties {
90
+ private constructor();
91
+ free(): void;
92
+ [Symbol.dispose](): void;
93
+ getUserProperties(): Array<any>;
94
+ readonly contentType: string | undefined;
95
+ readonly responseTopic: string | undefined;
96
+ readonly correlationData: Uint8Array | undefined;
97
+ readonly messageExpiryInterval: number | undefined;
98
+ readonly payloadFormatIndicator: boolean | undefined;
99
+ readonly subscriptionIdentifiers: Uint32Array;
86
100
  }
87
101
 
88
102
  export class WasmMqttClient {
89
103
  free(): void;
90
104
  [Symbol.dispose](): void;
91
- constructor(client_id: string);
92
- connect(url: string): Promise<void>;
93
- connect_with_options(url: string, config: WasmConnectOptions): Promise<void>;
94
- connect_message_port(port: MessagePort): Promise<void>;
95
- connect_message_port_with_options(port: MessagePort, config: WasmConnectOptions): Promise<void>;
96
- connect_broadcast_channel(channel_name: string): Promise<void>;
97
- publish(topic: string, payload: Uint8Array): Promise<void>;
98
- publish_with_options(topic: string, payload: Uint8Array, options: WasmPublishOptions): Promise<void>;
105
+ disconnect(): Promise<void>;
106
+ on_connect(callback: Function): void;
107
+ unsubscribe(topic: string): Promise<number>;
108
+ is_connected(): boolean;
99
109
  publish_qos1(topic: string, payload: Uint8Array, callback: Function): Promise<number>;
100
110
  publish_qos2(topic: string, payload: Uint8Array, callback: Function): Promise<number>;
101
- subscribe(topic: string): Promise<number>;
111
+ respond_auth(auth_data: Uint8Array): Promise<void>;
112
+ on_disconnect(callback: Function): void;
113
+ on_auth_challenge(callback: Function): void;
114
+ connect_message_port(port: MessagePort): Promise<void>;
115
+ connect_with_options(url: string, config: WasmConnectOptions): Promise<void>;
116
+ publish_with_options(topic: string, payload: Uint8Array, options: WasmPublishOptions): Promise<void>;
102
117
  subscribe_with_options(topic: string, callback: Function, options: WasmSubscribeOptions): Promise<number>;
103
118
  subscribe_with_callback(topic: string, callback: Function): Promise<number>;
104
- unsubscribe(topic: string): Promise<number>;
105
- disconnect(): Promise<void>;
106
- is_connected(): boolean;
107
- on_connect(callback: Function): void;
108
- on_disconnect(callback: Function): void;
119
+ connect_broadcast_channel(channel_name: string): Promise<void>;
120
+ connect_message_port_with_options(port: MessagePort, config: WasmConnectOptions): Promise<void>;
121
+ constructor(client_id: string);
122
+ connect(url: string): Promise<void>;
123
+ publish(topic: string, payload: Uint8Array): Promise<void>;
109
124
  on_error(callback: Function): void;
110
- on_auth_challenge(callback: Function): void;
111
- respond_auth(auth_data: Uint8Array): Promise<void>;
125
+ subscribe(topic: string): Promise<number>;
112
126
  }
113
127
 
114
128
  export class WasmPublishOptions {
115
129
  free(): void;
116
130
  [Symbol.dispose](): void;
117
- constructor();
118
131
  addUserProperty(key: string, value: string): void;
119
132
  clearUserProperties(): void;
120
- qos: number;
133
+ constructor();
121
134
  retain: boolean;
122
- get payloadFormatIndicator(): boolean | undefined;
123
- set payloadFormatIndicator(value: boolean | null | undefined);
124
- get messageExpiryInterval(): number | undefined;
125
- set messageExpiryInterval(value: number | null | undefined);
126
135
  get topicAlias(): number | undefined;
127
136
  set topicAlias(value: number | null | undefined);
137
+ get contentType(): string | undefined;
138
+ set contentType(value: string | null | undefined);
128
139
  get responseTopic(): string | undefined;
129
140
  set responseTopic(value: string | null | undefined);
130
141
  set correlationData(value: Uint8Array);
131
- get contentType(): string | undefined;
132
- set contentType(value: string | null | undefined);
142
+ get messageExpiryInterval(): number | undefined;
143
+ set messageExpiryInterval(value: number | null | undefined);
144
+ get payloadFormatIndicator(): boolean | undefined;
145
+ set payloadFormatIndicator(value: boolean | null | undefined);
146
+ qos: number;
133
147
  }
134
148
 
135
149
  export class WasmSubscribeOptions {
136
150
  free(): void;
137
151
  [Symbol.dispose](): void;
138
152
  constructor();
139
- qos: number;
140
153
  noLocal: boolean;
141
- retainAsPublished: boolean;
142
154
  retainHandling: number;
155
+ retainAsPublished: boolean;
143
156
  get subscriptionIdentifier(): number | undefined;
144
157
  set subscriptionIdentifier(value: number | null | undefined);
158
+ qos: number;
145
159
  }
146
160
 
147
161
  export class WasmTopicMapping {
148
162
  free(): void;
149
163
  [Symbol.dispose](): void;
150
164
  constructor(pattern: string, direction: WasmBridgeDirection);
151
- set qos(value: number);
152
165
  set local_prefix(value: string | null | undefined);
153
166
  set remote_prefix(value: string | null | undefined);
167
+ set qos(value: number);
154
168
  }
155
169
 
156
170
  export class WasmWillMessage {
157
171
  free(): void;
158
172
  [Symbol.dispose](): void;
159
173
  constructor(topic: string, payload: Uint8Array);
160
- topic: string;
161
- qos: number;
162
174
  retain: boolean;
163
- get willDelayInterval(): number | undefined;
164
- set willDelayInterval(value: number | null | undefined);
165
- get messageExpiryInterval(): number | undefined;
166
- set messageExpiryInterval(value: number | null | undefined);
167
175
  get contentType(): string | undefined;
168
176
  set contentType(value: string | null | undefined);
169
177
  get responseTopic(): string | undefined;
170
178
  set responseTopic(value: string | null | undefined);
179
+ get willDelayInterval(): number | undefined;
180
+ set willDelayInterval(value: number | null | undefined);
181
+ get messageExpiryInterval(): number | undefined;
182
+ set messageExpiryInterval(value: number | null | undefined);
183
+ qos: number;
184
+ topic: string;
171
185
  }
172
186
 
173
187
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
174
188
 
175
189
  export interface InitOutput {
176
190
  readonly memory: WebAssembly.Memory;
177
- readonly __wbg_wasmtopicmapping_free: (a: number, b: number) => void;
178
- readonly wasmtopicmapping_new: (a: number, b: number, c: number) => number;
179
- readonly wasmtopicmapping_set_qos: (a: number, b: number) => void;
180
- readonly wasmtopicmapping_set_local_prefix: (a: number, b: number, c: number) => void;
181
- readonly wasmtopicmapping_set_remote_prefix: (a: number, b: number, c: number) => void;
182
191
  readonly __wbg_wasmbridgeconfig_free: (a: number, b: number) => void;
192
+ readonly __wbg_wasmbroker_free: (a: number, b: number) => void;
193
+ readonly __wbg_wasmbrokerconfig_free: (a: number, b: number) => void;
194
+ readonly __wbg_wasmconnectoptions_free: (a: number, b: number) => void;
195
+ readonly __wbg_wasmmessageproperties_free: (a: number, b: number) => void;
196
+ readonly __wbg_wasmmqttclient_free: (a: number, b: number) => void;
197
+ readonly __wbg_wasmpublishoptions_free: (a: number, b: number) => void;
198
+ readonly __wbg_wasmsubscribeoptions_free: (a: number, b: number) => void;
199
+ readonly __wbg_wasmtopicmapping_free: (a: number, b: number) => void;
200
+ readonly __wbg_wasmwillmessage_free: (a: number, b: number) => void;
201
+ readonly wasmbridgeconfig_add_topic: (a: number, b: number) => void;
183
202
  readonly wasmbridgeconfig_new: (a: number, b: number) => number;
184
- readonly wasmbridgeconfig_set_client_id: (a: number, b: number, c: number) => void;
185
203
  readonly wasmbridgeconfig_set_clean_start: (a: number, b: number) => void;
204
+ readonly wasmbridgeconfig_set_client_id: (a: number, b: number, c: number) => void;
186
205
  readonly wasmbridgeconfig_set_keep_alive_secs: (a: number, b: number) => void;
187
- readonly wasmbridgeconfig_set_username: (a: number, b: number, c: number) => void;
188
206
  readonly wasmbridgeconfig_set_password: (a: number, b: number, c: number) => void;
189
- readonly wasmbridgeconfig_add_topic: (a: number, b: number) => void;
207
+ readonly wasmbridgeconfig_set_username: (a: number, b: number, c: number) => void;
190
208
  readonly wasmbridgeconfig_validate: (a: number) => [number, number];
191
- readonly __wbg_wasmbrokerconfig_free: (a: number, b: number) => void;
192
- readonly wasmbrokerconfig_new: () => number;
193
- readonly wasmbrokerconfig_set_max_clients: (a: number, b: number) => void;
194
- readonly wasmbrokerconfig_set_session_expiry_interval_secs: (a: number, b: number) => void;
195
- readonly wasmbrokerconfig_set_max_packet_size: (a: number, b: number) => void;
196
- readonly wasmbrokerconfig_set_topic_alias_maximum: (a: number, b: number) => void;
197
- readonly wasmbrokerconfig_set_retain_available: (a: number, b: number) => void;
198
- readonly wasmbrokerconfig_set_maximum_qos: (a: number, b: number) => void;
199
- readonly wasmbrokerconfig_set_wildcard_subscription_available: (a: number, b: number) => void;
200
- readonly wasmbrokerconfig_set_subscription_identifier_available: (a: number, b: number) => void;
201
- readonly wasmbrokerconfig_set_shared_subscription_available: (a: number, b: number) => void;
202
- readonly wasmbrokerconfig_set_server_keep_alive_secs: (a: number, b: number) => void;
203
- readonly __wbg_wasmbroker_free: (a: number, b: number) => void;
204
- readonly wasmbroker_new: () => [number, number, number];
205
- readonly wasmbroker_with_config: (a: number) => [number, number, number];
209
+ readonly wasmbroker_add_bridge: (a: number, b: number, c: any) => any;
206
210
  readonly wasmbroker_add_user: (a: number, b: number, c: number, d: number, e: number) => any;
207
211
  readonly wasmbroker_add_user_with_hash: (a: number, b: number, c: number, d: number, e: number) => any;
208
- readonly wasmbroker_remove_user: (a: number, b: number, c: number) => any;
212
+ readonly wasmbroker_create_client_port: (a: number) => [number, number, number];
209
213
  readonly wasmbroker_has_user: (a: number, b: number, c: number) => any;
210
- readonly wasmbroker_user_count: (a: number) => any;
211
- readonly wasmbroker_set_allow_anonymous: (a: number, b: number) => void;
212
214
  readonly wasmbroker_hash_password: (a: number, b: number) => [number, number, number, number];
213
- readonly wasmbroker_create_client_port: (a: number) => [number, number, number];
214
- readonly wasmbroker_add_bridge: (a: number, b: number, c: any) => any;
215
- readonly wasmbroker_remove_bridge: (a: number, b: number, c: number) => any;
216
215
  readonly wasmbroker_list_bridges: (a: number) => [number, number];
216
+ readonly wasmbroker_new: () => [number, number, number];
217
+ readonly wasmbroker_remove_bridge: (a: number, b: number, c: number) => any;
218
+ readonly wasmbroker_remove_user: (a: number, b: number, c: number) => any;
219
+ readonly wasmbroker_set_allow_anonymous: (a: number, b: number) => void;
217
220
  readonly wasmbroker_stop_all_bridges: (a: number) => any;
218
- readonly __wbg_wasmmqttclient_free: (a: number, b: number) => void;
219
- readonly wasmmqttclient_new: (a: number, b: number) => number;
221
+ readonly wasmbroker_user_count: (a: number) => any;
222
+ readonly wasmbroker_with_config: (a: number) => [number, number, number];
223
+ readonly wasmbrokerconfig_new: () => number;
224
+ readonly wasmbrokerconfig_set_max_clients: (a: number, b: number) => void;
225
+ readonly wasmbrokerconfig_set_max_packet_size: (a: number, b: number) => void;
226
+ readonly wasmbrokerconfig_set_maximum_qos: (a: number, b: number) => void;
227
+ readonly wasmbrokerconfig_set_retain_available: (a: number, b: number) => void;
228
+ readonly wasmbrokerconfig_set_server_keep_alive_secs: (a: number, b: number) => void;
229
+ readonly wasmbrokerconfig_set_session_expiry_interval_secs: (a: number, b: number) => void;
230
+ readonly wasmbrokerconfig_set_shared_subscription_available: (a: number, b: number) => void;
231
+ readonly wasmbrokerconfig_set_subscription_identifier_available: (a: number, b: number) => void;
232
+ readonly wasmbrokerconfig_set_topic_alias_maximum: (a: number, b: number) => void;
233
+ readonly wasmbrokerconfig_set_wildcard_subscription_available: (a: number, b: number) => void;
234
+ readonly wasmconnectoptions_addUserProperty: (a: number, b: number, c: number, d: number, e: number) => void;
235
+ readonly wasmconnectoptions_authenticationMethod: (a: number) => [number, number];
236
+ readonly wasmconnectoptions_cleanStart: (a: number) => number;
237
+ readonly wasmconnectoptions_clearUserProperties: (a: number) => void;
238
+ readonly wasmconnectoptions_clear_will: (a: number) => void;
239
+ readonly wasmconnectoptions_keepAlive: (a: number) => number;
240
+ readonly wasmconnectoptions_maximumPacketSize: (a: number) => number;
241
+ readonly wasmconnectoptions_new: () => number;
242
+ readonly wasmconnectoptions_protocolVersion: (a: number) => number;
243
+ readonly wasmconnectoptions_receiveMaximum: (a: number) => number;
244
+ readonly wasmconnectoptions_requestProblemInformation: (a: number) => number;
245
+ readonly wasmconnectoptions_requestResponseInformation: (a: number) => number;
246
+ readonly wasmconnectoptions_sessionExpiryInterval: (a: number) => number;
247
+ readonly wasmconnectoptions_set_authenticationData: (a: number, b: number, c: number) => void;
248
+ readonly wasmconnectoptions_set_authenticationMethod: (a: number, b: number, c: number) => void;
249
+ readonly wasmconnectoptions_set_cleanStart: (a: number, b: number) => void;
250
+ readonly wasmconnectoptions_set_keepAlive: (a: number, b: number) => void;
251
+ readonly wasmconnectoptions_set_maximumPacketSize: (a: number, b: number) => void;
252
+ readonly wasmconnectoptions_set_password: (a: number, b: number, c: number) => void;
253
+ readonly wasmconnectoptions_set_protocolVersion: (a: number, b: number) => void;
254
+ readonly wasmconnectoptions_set_receiveMaximum: (a: number, b: number) => void;
255
+ readonly wasmconnectoptions_set_requestProblemInformation: (a: number, b: number) => void;
256
+ readonly wasmconnectoptions_set_requestResponseInformation: (a: number, b: number) => void;
257
+ readonly wasmconnectoptions_set_topicAliasMaximum: (a: number, b: number) => void;
258
+ readonly wasmconnectoptions_set_username: (a: number, b: number, c: number) => void;
259
+ readonly wasmconnectoptions_set_will: (a: number, b: number) => void;
260
+ readonly wasmconnectoptions_topicAliasMaximum: (a: number) => number;
261
+ readonly wasmconnectoptions_username: (a: number) => [number, number];
262
+ readonly wasmmessageproperties_contentType: (a: number) => [number, number];
263
+ readonly wasmmessageproperties_correlationData: (a: number) => [number, number];
264
+ readonly wasmmessageproperties_getUserProperties: (a: number) => any;
265
+ readonly wasmmessageproperties_payloadFormatIndicator: (a: number) => number;
266
+ readonly wasmmessageproperties_responseTopic: (a: number) => [number, number];
267
+ readonly wasmmessageproperties_subscriptionIdentifiers: (a: number) => [number, number];
220
268
  readonly wasmmqttclient_connect: (a: number, b: number, c: number) => any;
221
- readonly wasmmqttclient_connect_with_options: (a: number, b: number, c: number, d: number) => any;
269
+ readonly wasmmqttclient_connect_broadcast_channel: (a: number, b: number, c: number) => any;
222
270
  readonly wasmmqttclient_connect_message_port: (a: number, b: any) => any;
223
271
  readonly wasmmqttclient_connect_message_port_with_options: (a: number, b: any, c: number) => any;
224
- readonly wasmmqttclient_connect_broadcast_channel: (a: number, b: number, c: number) => any;
225
- readonly wasmmqttclient_publish: (a: number, b: number, c: number, d: number, e: number) => any;
226
- readonly wasmmqttclient_publish_with_options: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
227
- readonly wasmmqttclient_publish_qos1: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
228
- readonly wasmmqttclient_publish_qos2: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
229
- readonly wasmmqttclient_subscribe: (a: number, b: number, c: number) => any;
230
- readonly wasmmqttclient_subscribe_with_options: (a: number, b: number, c: number, d: any, e: number) => any;
231
- readonly wasmmqttclient_subscribe_with_callback: (a: number, b: number, c: number, d: any) => any;
232
- readonly wasmmqttclient_unsubscribe: (a: number, b: number, c: number) => any;
272
+ readonly wasmmqttclient_connect_with_options: (a: number, b: number, c: number, d: number) => any;
233
273
  readonly wasmmqttclient_disconnect: (a: number) => any;
234
274
  readonly wasmmqttclient_is_connected: (a: number) => number;
275
+ readonly wasmmqttclient_new: (a: number, b: number) => number;
276
+ readonly wasmmqttclient_on_auth_challenge: (a: number, b: any) => void;
235
277
  readonly wasmmqttclient_on_connect: (a: number, b: any) => void;
236
278
  readonly wasmmqttclient_on_disconnect: (a: number, b: any) => void;
237
279
  readonly wasmmqttclient_on_error: (a: number, b: any) => void;
238
- readonly wasmmqttclient_on_auth_challenge: (a: number, b: any) => void;
280
+ readonly wasmmqttclient_publish: (a: number, b: number, c: number, d: number, e: number) => any;
281
+ readonly wasmmqttclient_publish_qos1: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
282
+ readonly wasmmqttclient_publish_qos2: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
283
+ readonly wasmmqttclient_publish_with_options: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
239
284
  readonly wasmmqttclient_respond_auth: (a: number, b: number, c: number) => any;
240
- readonly __wbg_wasmconnectoptions_free: (a: number, b: number) => void;
241
- readonly wasmconnectoptions_new: () => number;
242
- readonly wasmconnectoptions_keepAlive: (a: number) => number;
243
- readonly wasmconnectoptions_set_keepAlive: (a: number, b: number) => void;
244
- readonly wasmconnectoptions_cleanStart: (a: number) => number;
245
- readonly wasmconnectoptions_set_cleanStart: (a: number, b: number) => void;
246
- readonly wasmconnectoptions_username: (a: number) => [number, number];
247
- readonly wasmconnectoptions_set_username: (a: number, b: number, c: number) => void;
248
- readonly wasmconnectoptions_set_password: (a: number, b: number, c: number) => void;
249
- readonly wasmconnectoptions_set_will: (a: number, b: number) => void;
250
- readonly wasmconnectoptions_clear_will: (a: number) => void;
251
- readonly wasmconnectoptions_sessionExpiryInterval: (a: number) => number;
252
- readonly wasmconnectoptions_receiveMaximum: (a: number) => number;
253
- readonly wasmconnectoptions_set_receiveMaximum: (a: number, b: number) => void;
254
- readonly wasmconnectoptions_maximumPacketSize: (a: number) => number;
255
- readonly wasmconnectoptions_set_maximumPacketSize: (a: number, b: number) => void;
256
- readonly wasmconnectoptions_topicAliasMaximum: (a: number) => number;
257
- readonly wasmconnectoptions_set_topicAliasMaximum: (a: number, b: number) => void;
258
- readonly wasmconnectoptions_requestResponseInformation: (a: number) => number;
259
- readonly wasmconnectoptions_set_requestResponseInformation: (a: number, b: number) => void;
260
- readonly wasmconnectoptions_requestProblemInformation: (a: number) => number;
261
- readonly wasmconnectoptions_set_requestProblemInformation: (a: number, b: number) => void;
262
- readonly wasmconnectoptions_authenticationMethod: (a: number) => [number, number];
263
- readonly wasmconnectoptions_set_authenticationMethod: (a: number, b: number, c: number) => void;
264
- readonly wasmconnectoptions_set_authenticationData: (a: number, b: number, c: number) => void;
265
- readonly wasmconnectoptions_addUserProperty: (a: number, b: number, c: number, d: number, e: number) => void;
266
- readonly wasmconnectoptions_clearUserProperties: (a: number) => void;
267
- readonly __wbg_wasmpublishoptions_free: (a: number, b: number) => void;
285
+ readonly wasmmqttclient_subscribe: (a: number, b: number, c: number) => any;
286
+ readonly wasmmqttclient_subscribe_with_callback: (a: number, b: number, c: number, d: any) => any;
287
+ readonly wasmmqttclient_subscribe_with_options: (a: number, b: number, c: number, d: any, e: number) => any;
288
+ readonly wasmmqttclient_unsubscribe: (a: number, b: number, c: number) => any;
289
+ readonly wasmpublishoptions_addUserProperty: (a: number, b: number, c: number, d: number, e: number) => void;
290
+ readonly wasmpublishoptions_clearUserProperties: (a: number) => void;
291
+ readonly wasmpublishoptions_contentType: (a: number) => [number, number];
268
292
  readonly wasmpublishoptions_new: () => number;
293
+ readonly wasmpublishoptions_payloadFormatIndicator: (a: number) => number;
269
294
  readonly wasmpublishoptions_qos: (a: number) => number;
270
- readonly wasmpublishoptions_set_qos: (a: number, b: number) => void;
295
+ readonly wasmpublishoptions_responseTopic: (a: number) => [number, number];
271
296
  readonly wasmpublishoptions_retain: (a: number) => number;
272
- readonly wasmpublishoptions_set_retain: (a: number, b: number) => void;
273
- readonly wasmpublishoptions_payloadFormatIndicator: (a: number) => number;
297
+ readonly wasmpublishoptions_set_contentType: (a: number, b: number, c: number) => void;
298
+ readonly wasmpublishoptions_set_correlationData: (a: number, b: number, c: number) => void;
274
299
  readonly wasmpublishoptions_set_payloadFormatIndicator: (a: number, b: number) => void;
275
- readonly wasmpublishoptions_topicAlias: (a: number) => number;
276
- readonly wasmpublishoptions_set_topicAlias: (a: number, b: number) => void;
277
- readonly wasmpublishoptions_responseTopic: (a: number) => [number, number];
300
+ readonly wasmpublishoptions_set_qos: (a: number, b: number) => void;
278
301
  readonly wasmpublishoptions_set_responseTopic: (a: number, b: number, c: number) => void;
279
- readonly wasmpublishoptions_set_correlationData: (a: number, b: number, c: number) => void;
280
- readonly wasmpublishoptions_contentType: (a: number) => [number, number];
281
- readonly wasmpublishoptions_set_contentType: (a: number, b: number, c: number) => void;
282
- readonly wasmpublishoptions_addUserProperty: (a: number, b: number, c: number, d: number, e: number) => void;
283
- readonly wasmpublishoptions_clearUserProperties: (a: number) => void;
284
- readonly __wbg_wasmsubscribeoptions_free: (a: number, b: number) => void;
302
+ readonly wasmpublishoptions_set_retain: (a: number, b: number) => void;
303
+ readonly wasmpublishoptions_set_topicAlias: (a: number, b: number) => void;
304
+ readonly wasmpublishoptions_topicAlias: (a: number) => number;
285
305
  readonly wasmsubscribeoptions_new: () => number;
286
- readonly wasmsubscribeoptions_qos: (a: number) => number;
287
- readonly wasmsubscribeoptions_set_qos: (a: number, b: number) => void;
288
306
  readonly wasmsubscribeoptions_noLocal: (a: number) => number;
289
- readonly wasmsubscribeoptions_set_noLocal: (a: number, b: number) => void;
307
+ readonly wasmsubscribeoptions_qos: (a: number) => number;
290
308
  readonly wasmsubscribeoptions_retainAsPublished: (a: number) => number;
291
- readonly wasmsubscribeoptions_set_retainAsPublished: (a: number, b: number) => void;
292
309
  readonly wasmsubscribeoptions_retainHandling: (a: number) => number;
310
+ readonly wasmsubscribeoptions_set_noLocal: (a: number, b: number) => void;
311
+ readonly wasmsubscribeoptions_set_qos: (a: number, b: number) => void;
312
+ readonly wasmsubscribeoptions_set_retainAsPublished: (a: number, b: number) => void;
293
313
  readonly wasmsubscribeoptions_set_retainHandling: (a: number, b: number) => void;
294
- readonly __wbg_wasmwillmessage_free: (a: number, b: number) => void;
314
+ readonly wasmtopicmapping_new: (a: number, b: number, c: number) => number;
315
+ readonly wasmtopicmapping_set_local_prefix: (a: number, b: number, c: number) => void;
316
+ readonly wasmtopicmapping_set_qos: (a: number, b: number) => void;
317
+ readonly wasmtopicmapping_set_remote_prefix: (a: number, b: number, c: number) => void;
318
+ readonly wasmwillmessage_contentType: (a: number) => [number, number];
295
319
  readonly wasmwillmessage_new: (a: number, b: number, c: number, d: number) => number;
296
- readonly wasmwillmessage_topic: (a: number) => [number, number];
297
- readonly wasmwillmessage_set_topic: (a: number, b: number, c: number) => void;
298
320
  readonly wasmwillmessage_qos: (a: number) => number;
299
- readonly wasmwillmessage_set_qos: (a: number, b: number) => void;
321
+ readonly wasmwillmessage_responseTopic: (a: number) => [number, number];
300
322
  readonly wasmwillmessage_retain: (a: number) => number;
301
- readonly wasmwillmessage_set_retain: (a: number, b: number) => void;
302
- readonly wasmwillmessage_contentType: (a: number) => [number, number];
303
323
  readonly wasmwillmessage_set_contentType: (a: number, b: number, c: number) => void;
304
- readonly wasmwillmessage_responseTopic: (a: number) => [number, number];
324
+ readonly wasmwillmessage_set_qos: (a: number, b: number) => void;
305
325
  readonly wasmwillmessage_set_responseTopic: (a: number, b: number, c: number) => void;
326
+ readonly wasmwillmessage_set_retain: (a: number, b: number) => void;
327
+ readonly wasmwillmessage_set_topic: (a: number, b: number, c: number) => void;
328
+ readonly wasmwillmessage_topic: (a: number) => [number, number];
329
+ readonly wasmmessageproperties_messageExpiryInterval: (a: number) => number;
330
+ readonly wasmpublishoptions_messageExpiryInterval: (a: number) => number;
331
+ readonly wasmsubscribeoptions_subscriptionIdentifier: (a: number) => number;
332
+ readonly wasmwillmessage_messageExpiryInterval: (a: number) => number;
333
+ readonly wasmwillmessage_willDelayInterval: (a: number) => number;
306
334
  readonly wasmconnectoptions_set_sessionExpiryInterval: (a: number, b: number) => void;
307
335
  readonly wasmpublishoptions_set_messageExpiryInterval: (a: number, b: number) => void;
308
336
  readonly wasmsubscribeoptions_set_subscriptionIdentifier: (a: number, b: number) => void;
309
337
  readonly wasmwillmessage_set_willDelayInterval: (a: number, b: number) => void;
310
- readonly wasmpublishoptions_messageExpiryInterval: (a: number) => number;
311
- readonly wasmsubscribeoptions_subscriptionIdentifier: (a: number) => number;
312
- readonly wasmwillmessage_willDelayInterval: (a: number) => number;
313
- readonly wasmwillmessage_messageExpiryInterval: (a: number) => number;
314
338
  readonly wasmwillmessage_set_messageExpiryInterval: (a: number, b: number) => void;
315
- readonly wasm_bindgen__convert__closures_____invoke__ha8b0b9fe7fac12a4: (a: number, b: number, c: any) => void;
316
- readonly wasm_bindgen__closure__destroy__h60ca8c1f3f61ef16: (a: number, b: number) => void;
317
- readonly wasm_bindgen__convert__closures_____invoke__h0bd4b722235e32cd: (a: number, b: number, c: any) => void;
318
- readonly wasm_bindgen__closure__destroy__h8e3161c754fbc99b: (a: number, b: number) => void;
319
- readonly wasm_bindgen__convert__closures_____invoke__hf8b807ed3211f368: (a: number, b: number) => void;
320
- readonly wasm_bindgen__closure__destroy__h41d50b86eff9c0fb: (a: number, b: number) => void;
321
- readonly wasm_bindgen__convert__closures_____invoke__h22971f3c49e1e8f1: (a: number, b: number, c: any, d: any) => void;
339
+ readonly wasm_bindgen__convert__closures_____invoke__h0669e1264d41ddde: (a: number, b: number, c: any) => void;
340
+ readonly wasm_bindgen__closure__destroy__h49e187871d56b618: (a: number, b: number) => void;
341
+ readonly wasm_bindgen__convert__closures_____invoke__he72b1024119f349e: (a: number, b: number) => void;
342
+ readonly wasm_bindgen__closure__destroy__h010cf814693e663b: (a: number, b: number) => void;
343
+ readonly wasm_bindgen__convert__closures_____invoke__h12ffa24d99e28e58: (a: number, b: number, c: any) => void;
344
+ readonly wasm_bindgen__closure__destroy__hebcaa2b719f28442: (a: number, b: number) => void;
345
+ readonly wasm_bindgen__convert__closures_____invoke__h2d9e646cfc355363: (a: number, b: number, c: any, d: any) => void;
322
346
  readonly __wbindgen_malloc: (a: number, b: number) => number;
323
347
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
324
348
  readonly __wbindgen_exn_store: (a: number) => void;