mqtt5-wasm 1.2.0 → 1.3.2

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/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # mqtt5-wasm
2
2
 
3
- MQTT v5.0 and v3.1.1 WebAssembly client and broker for browser environments.
4
-
5
- > **Upgrading from 0.x?** See the [Migration Guide](MIGRATION-1.0.md) for the complete list of renamed types, methods, and properties.
3
+ MQTT v5.0 and v3.1.1 WebAssembly client and broker for browser environments. This crate compiles to WASM and exposes a JavaScript-friendly API via `wasm-bindgen`, giving browser applications a full MQTT client with QoS 0/1/2 and an optional in-tab broker — no server required for local development and testing.
6
4
 
7
5
  ## Features
8
6
 
@@ -31,7 +29,7 @@ npm install mqtt5-wasm
31
29
 
32
30
  ```toml
33
31
  [dependencies]
34
- mqtt5-wasm = "1.2"
32
+ mqtt5-wasm = "1.3"
35
33
  ```
36
34
 
37
35
  Build with wasm-bindgen:
package/mqtt5_wasm.d.ts CHANGED
@@ -644,22 +644,19 @@ export interface InitOutput {
644
644
  readonly willmessage_topic: (a: number, b: number) => void;
645
645
  readonly willmessage_willDelayInterval: (a: number) => number;
646
646
  readonly createCodecRegistry: () => number;
647
- readonly gzipcodec_withLevel: (a: number, b: number) => number;
647
+ readonly gzipcodec_withMinSize: (a: number, b: number) => number;
648
+ readonly gzipcodec_withMaxDecompressedSize: (a: number, b: number) => number;
648
649
  readonly gzipcodec_new: () => number;
649
650
  readonly createGzipCodec: (a: number, b: number) => number;
650
651
  readonly __wbg_gzipcodec_free: (a: number, b: number) => void;
651
- readonly gzipcodec_withMinSize: (a: number, b: number) => number;
652
- readonly gzipcodec_withMaxDecompressedSize: (a: number, b: number) => number;
653
- readonly __wasm_bindgen_func_elem_2610: (a: number, b: number) => void;
654
- readonly __wasm_bindgen_func_elem_2770: (a: number, b: number) => void;
655
- readonly __wasm_bindgen_func_elem_183: (a: number, b: number) => void;
656
- readonly __wasm_bindgen_func_elem_4240: (a: number, b: number, c: number, d: number) => void;
657
- readonly __wasm_bindgen_func_elem_4252: (a: number, b: number, c: number, d: number) => void;
658
- readonly __wasm_bindgen_func_elem_1047: (a: number, b: number, c: number) => void;
659
- readonly __wasm_bindgen_func_elem_1047_3: (a: number, b: number, c: number) => void;
660
- readonly __wasm_bindgen_func_elem_1047_4: (a: number, b: number, c: number) => void;
661
- readonly __wasm_bindgen_func_elem_1047_5: (a: number, b: number, c: number) => void;
662
- readonly __wasm_bindgen_func_elem_2630: (a: number, b: number) => void;
652
+ readonly gzipcodec_withLevel: (a: number, b: number) => number;
653
+ readonly __wasm_bindgen_func_elem_2552: (a: number, b: number) => void;
654
+ readonly __wasm_bindgen_func_elem_2709: (a: number, b: number) => void;
655
+ readonly __wasm_bindgen_func_elem_139: (a: number, b: number) => void;
656
+ readonly __wasm_bindgen_func_elem_4189: (a: number, b: number, c: number, d: number) => void;
657
+ readonly __wasm_bindgen_func_elem_2725: (a: number, b: number, c: number) => void;
658
+ readonly __wasm_bindgen_func_elem_1018: (a: number, b: number, c: number) => void;
659
+ readonly __wasm_bindgen_func_elem_2572: (a: number, b: number) => void;
663
660
  readonly __wbindgen_export: (a: number, b: number) => number;
664
661
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
665
662
  readonly __wbindgen_export3: (a: number) => void;
package/mqtt5_wasm.js CHANGED
@@ -1171,7 +1171,7 @@ export class GzipCodec {
1171
1171
  wasm.__wbg_gzipcodec_free(ptr, 0);
1172
1172
  }
1173
1173
  constructor() {
1174
- const ret = wasm.gzipcodec_new();
1174
+ const ret = wasm.deflatecodec_new();
1175
1175
  this.__wbg_ptr = ret >>> 0;
1176
1176
  GzipCodecFinalization.register(this, this.__wbg_ptr, this);
1177
1177
  return this;
@@ -1182,7 +1182,7 @@ export class GzipCodec {
1182
1182
  */
1183
1183
  withLevel(level) {
1184
1184
  const ptr = this.__destroy_into_raw();
1185
- const ret = wasm.gzipcodec_withLevel(ptr, level);
1185
+ const ret = wasm.deflatecodec_withLevel(ptr, level);
1186
1186
  return GzipCodec.__wrap(ret);
1187
1187
  }
1188
1188
  /**
@@ -1191,7 +1191,7 @@ export class GzipCodec {
1191
1191
  */
1192
1192
  withMaxDecompressedSize(size) {
1193
1193
  const ptr = this.__destroy_into_raw();
1194
- const ret = wasm.gzipcodec_withMaxDecompressedSize(ptr, size);
1194
+ const ret = wasm.deflatecodec_withMaxDecompressedSize(ptr, size);
1195
1195
  return GzipCodec.__wrap(ret);
1196
1196
  }
1197
1197
  /**
@@ -1200,7 +1200,7 @@ export class GzipCodec {
1200
1200
  */
1201
1201
  withMinSize(size) {
1202
1202
  const ptr = this.__destroy_into_raw();
1203
- const ret = wasm.gzipcodec_withMinSize(ptr, size);
1203
+ const ret = wasm.deflatecodec_withMinSize(ptr, size);
1204
1204
  return GzipCodec.__wrap(ret);
1205
1205
  }
1206
1206
  }
@@ -2188,7 +2188,7 @@ if (Symbol.dispose) WillMessage.prototype[Symbol.dispose] = WillMessage.prototyp
2188
2188
  * @returns {CodecRegistry}
2189
2189
  */
2190
2190
  export function createCodecRegistry() {
2191
- const ret = wasm.createCodecRegistry();
2191
+ const ret = wasm.codecregistry_new();
2192
2192
  return CodecRegistry.__wrap(ret);
2193
2193
  }
2194
2194
 
@@ -2208,87 +2208,84 @@ export function createDeflateCodec(level, minSize) {
2208
2208
  * @returns {GzipCodec}
2209
2209
  */
2210
2210
  export function createGzipCodec(level, minSize) {
2211
- const ret = wasm.createGzipCodec(isLikeNone(level) ? 0xFFFFFF : level, isLikeNone(minSize) ? 0x100000001 : (minSize) >>> 0);
2211
+ const ret = wasm.createDeflateCodec(isLikeNone(level) ? 0xFFFFFF : level, isLikeNone(minSize) ? 0x100000001 : (minSize) >>> 0);
2212
2212
  return GzipCodec.__wrap(ret);
2213
2213
  }
2214
2214
 
2215
2215
  function __wbg_get_imports() {
2216
2216
  const import0 = {
2217
2217
  __proto__: null,
2218
- __wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
2218
+ __wbg___wbindgen_debug_string_0bc8482c6e3508ae: function(arg0, arg1) {
2219
2219
  const ret = debugString(getObject(arg1));
2220
2220
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2221
2221
  const len1 = WASM_VECTOR_LEN;
2222
2222
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2223
2223
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2224
2224
  },
2225
- __wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
2225
+ __wbg___wbindgen_is_function_0095a73b8b156f76: function(arg0) {
2226
2226
  const ret = typeof(getObject(arg0)) === 'function';
2227
2227
  return ret;
2228
2228
  },
2229
- __wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
2229
+ __wbg___wbindgen_is_undefined_9e4d92534c42d778: function(arg0) {
2230
2230
  const ret = getObject(arg0) === undefined;
2231
2231
  return ret;
2232
2232
  },
2233
- __wbg___wbindgen_number_get_34bb9d9dcfa21373: function(arg0, arg1) {
2233
+ __wbg___wbindgen_number_get_8ff4255516ccad3e: function(arg0, arg1) {
2234
2234
  const obj = getObject(arg1);
2235
2235
  const ret = typeof(obj) === 'number' ? obj : undefined;
2236
2236
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
2237
2237
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
2238
2238
  },
2239
- __wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
2239
+ __wbg___wbindgen_throw_be289d5034ed271b: function(arg0, arg1) {
2240
2240
  throw new Error(getStringFromWasm0(arg0, arg1));
2241
2241
  },
2242
- __wbg__wbg_cb_unref_6b5b6b8576d35cb1: function(arg0) {
2242
+ __wbg__wbg_cb_unref_d9b87ff7982e3b21: function(arg0) {
2243
2243
  getObject(arg0)._wbg_cb_unref();
2244
2244
  },
2245
- __wbg_addEventListener_2d985aa8a656f6dc: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2245
+ __wbg_addEventListener_3acb0aad4483804c: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2246
2246
  getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
2247
2247
  }, arguments); },
2248
- __wbg_addEventListener_97281b0177d72360: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2248
+ __wbg_addEventListener_c917b5aafbcf493f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2249
2249
  getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3), getObject(arg4));
2250
2250
  }, arguments); },
2251
- __wbg_buffer_60b8043cd926067d: function(arg0) {
2251
+ __wbg_buffer_26d0910f3a5bc899: function(arg0) {
2252
2252
  const ret = getObject(arg0).buffer;
2253
2253
  return addHeapObject(ret);
2254
2254
  },
2255
- __wbg_call_2d781c1f4d5c0ef8: function() { return handleError(function (arg0, arg1, arg2) {
2256
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
2255
+ __wbg_call_389efe28435a9388: function() { return handleError(function (arg0, arg1) {
2256
+ const ret = getObject(arg0).call(getObject(arg1));
2257
2257
  return addHeapObject(ret);
2258
2258
  }, arguments); },
2259
- __wbg_call_dcc2662fa17a72cf: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2260
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
2259
+ __wbg_call_4708e0c13bdc8e95: function() { return handleError(function (arg0, arg1, arg2) {
2260
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
2261
2261
  return addHeapObject(ret);
2262
2262
  }, arguments); },
2263
- __wbg_call_e133b57c9155d22c: function() { return handleError(function (arg0, arg1) {
2264
- const ret = getObject(arg0).call(getObject(arg1));
2263
+ __wbg_call_812d25f1510c13c8: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2264
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
2265
2265
  return addHeapObject(ret);
2266
2266
  }, arguments); },
2267
- __wbg_call_f858478a02f9600f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2267
+ __wbg_call_e8c868596c950cf6: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2268
2268
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
2269
2269
  return addHeapObject(ret);
2270
2270
  }, arguments); },
2271
- __wbg_clearTimeout_113b1cde814ec762: function(arg0) {
2271
+ __wbg_clearTimeout_5a54f8841c30079a: function(arg0) {
2272
2272
  const ret = clearTimeout(takeObject(arg0));
2273
2273
  return addHeapObject(ret);
2274
2274
  },
2275
- __wbg_close_ab55423854e61546: function(arg0) {
2276
- getObject(arg0).close();
2277
- },
2278
- __wbg_close_af26905c832a88cb: function() { return handleError(function (arg0) {
2275
+ __wbg_close_1d08eaf57ed325c0: function() { return handleError(function (arg0) {
2279
2276
  getObject(arg0).close();
2280
2277
  }, arguments); },
2281
- __wbg_close_afd47b48f7425c35: function(arg0) {
2278
+ __wbg_close_36e3b6eed1f8c59d: function(arg0) {
2279
+ getObject(arg0).close();
2280
+ },
2281
+ __wbg_close_fad2f0ee451926ed: function(arg0) {
2282
2282
  getObject(arg0).close();
2283
2283
  },
2284
- __wbg_data_a3d9ff9cdd801002: function(arg0) {
2284
+ __wbg_data_5330da50312d0bc1: function(arg0) {
2285
2285
  const ret = getObject(arg0).data;
2286
2286
  return addHeapObject(ret);
2287
2287
  },
2288
- __wbg_error_8d9a8e04cd1d3588: function(arg0) {
2289
- console.error(getObject(arg0));
2290
- },
2291
- __wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
2288
+ __wbg_error_7534b8e9a36f1ab4: function(arg0, arg1) {
2292
2289
  let deferred0_0;
2293
2290
  let deferred0_1;
2294
2291
  try {
@@ -2299,18 +2296,21 @@ function __wbg_get_imports() {
2299
2296
  wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
2300
2297
  }
2301
2298
  },
2302
- __wbg_from_4bdf88943703fd48: function(arg0) {
2299
+ __wbg_error_9a7fe3f932034cde: function(arg0) {
2300
+ console.error(getObject(arg0));
2301
+ },
2302
+ __wbg_from_bddd64e7d5ff6941: function(arg0) {
2303
2303
  const ret = Array.from(getObject(arg0));
2304
2304
  return addHeapObject(ret);
2305
2305
  },
2306
- __wbg_getRandomValues_3f44b700395062e5: function() { return handleError(function (arg0, arg1) {
2306
+ __wbg_getRandomValues_1c61fac11405ffdc: function() { return handleError(function (arg0, arg1) {
2307
2307
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
2308
2308
  }, arguments); },
2309
- __wbg_get_a8ee5c45dabc1b3b: function(arg0, arg1) {
2309
+ __wbg_get_9b94d73e6221f75c: function(arg0, arg1) {
2310
2310
  const ret = getObject(arg0)[arg1 >>> 0];
2311
2311
  return addHeapObject(ret);
2312
2312
  },
2313
- __wbg_instanceof_ArrayBuffer_101e2bf31071a9f6: function(arg0) {
2313
+ __wbg_instanceof_ArrayBuffer_c367199e2fa2aa04: function(arg0) {
2314
2314
  let result;
2315
2315
  try {
2316
2316
  result = getObject(arg0) instanceof ArrayBuffer;
@@ -2320,7 +2320,7 @@ function __wbg_get_imports() {
2320
2320
  const ret = result;
2321
2321
  return ret;
2322
2322
  },
2323
- __wbg_instanceof_Window_23e677d2c6843922: function(arg0) {
2323
+ __wbg_instanceof_Window_ed49b2db8df90359: function(arg0) {
2324
2324
  let result;
2325
2325
  try {
2326
2326
  result = getObject(arg0) instanceof Window;
@@ -2330,53 +2330,53 @@ function __wbg_get_imports() {
2330
2330
  const ret = result;
2331
2331
  return ret;
2332
2332
  },
2333
- __wbg_length_b3416cf66a5452c8: function(arg0) {
2333
+ __wbg_length_32ed9a279acd054c: function(arg0) {
2334
2334
  const ret = getObject(arg0).length;
2335
2335
  return ret;
2336
2336
  },
2337
- __wbg_length_ea16607d7b61445b: function(arg0) {
2337
+ __wbg_length_35a7bace40f36eac: function(arg0) {
2338
2338
  const ret = getObject(arg0).length;
2339
2339
  return ret;
2340
2340
  },
2341
- __wbg_log_524eedafa26daa59: function(arg0) {
2341
+ __wbg_log_6b5ca2e6124b2808: function(arg0) {
2342
2342
  console.log(getObject(arg0));
2343
2343
  },
2344
2344
  __wbg_messageproperties_new: function(arg0) {
2345
2345
  const ret = MessageProperties.__wrap(arg0);
2346
2346
  return addHeapObject(ret);
2347
2347
  },
2348
- __wbg_navigator_9cebf56f28aa719b: function(arg0) {
2348
+ __wbg_navigator_43be698ba96fc088: function(arg0) {
2349
2349
  const ret = getObject(arg0).navigator;
2350
2350
  return addHeapObject(ret);
2351
2351
  },
2352
- __wbg_new_227d7c05414eb861: function() {
2353
- const ret = new Error();
2352
+ __wbg_new_361308b2356cecd0: function() {
2353
+ const ret = new Object();
2354
2354
  return addHeapObject(ret);
2355
2355
  },
2356
- __wbg_new_5f486cdf45a04d78: function(arg0) {
2357
- const ret = new Uint8Array(getObject(arg0));
2356
+ __wbg_new_3eb36ae241fe6f44: function() {
2357
+ const ret = new Array();
2358
2358
  return addHeapObject(ret);
2359
2359
  },
2360
- __wbg_new_7beff0cea022eabb: function() { return handleError(function (arg0, arg1) {
2361
- const ret = new BroadcastChannel(getStringFromWasm0(arg0, arg1));
2360
+ __wbg_new_6f0524fbfa300c47: function() { return handleError(function () {
2361
+ const ret = new MessageChannel();
2362
2362
  return addHeapObject(ret);
2363
2363
  }, arguments); },
2364
- __wbg_new_a70fbab9066b301f: function() {
2365
- const ret = new Array();
2364
+ __wbg_new_8a6f238a6ece86ea: function() {
2365
+ const ret = new Error();
2366
2366
  return addHeapObject(ret);
2367
2367
  },
2368
- __wbg_new_ab79df5bd7c26067: function() {
2369
- const ret = new Object();
2368
+ __wbg_new_afb8dbb951819ab7: function() { return handleError(function (arg0, arg1) {
2369
+ const ret = new BroadcastChannel(getStringFromWasm0(arg0, arg1));
2370
2370
  return addHeapObject(ret);
2371
- },
2372
- __wbg_new_d098e265629cd10f: function(arg0, arg1) {
2371
+ }, arguments); },
2372
+ __wbg_new_b5d9e2fb389fef91: function(arg0, arg1) {
2373
2373
  try {
2374
2374
  var state0 = {a: arg0, b: arg1};
2375
2375
  var cb0 = (arg0, arg1) => {
2376
2376
  const a = state0.a;
2377
2377
  state0.a = 0;
2378
2378
  try {
2379
- return __wasm_bindgen_func_elem_4252(a, state0.b, arg0, arg1);
2379
+ return __wasm_bindgen_func_elem_4189(a, state0.b, arg0, arg1);
2380
2380
  } finally {
2381
2381
  state0.a = a;
2382
2382
  }
@@ -2387,216 +2387,189 @@ function __wbg_get_imports() {
2387
2387
  state0.a = state0.b = 0;
2388
2388
  }
2389
2389
  },
2390
- __wbg_new_f7708ba82c4c12f6: function() { return handleError(function () {
2391
- const ret = new MessageChannel();
2390
+ __wbg_new_dd2b680c8bf6ae29: function(arg0) {
2391
+ const ret = new Uint8Array(getObject(arg0));
2392
2392
  return addHeapObject(ret);
2393
- }, arguments); },
2394
- __wbg_new_from_slice_22da9388ac046e50: function(arg0, arg1) {
2393
+ },
2394
+ __wbg_new_from_slice_a3d2629dc1826784: function(arg0, arg1) {
2395
2395
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
2396
2396
  return addHeapObject(ret);
2397
2397
  },
2398
- __wbg_new_no_args_d15c5c26a5dbe2e7: function(arg0, arg1) {
2398
+ __wbg_new_no_args_1c7c842f08d00ebb: function(arg0, arg1) {
2399
2399
  const ret = new Function(getStringFromWasm0(arg0, arg1));
2400
2400
  return addHeapObject(ret);
2401
2401
  },
2402
- __wbg_new_typed_aaaeaf29cf802876: function(arg0, arg1) {
2403
- try {
2404
- var state0 = {a: arg0, b: arg1};
2405
- var cb0 = (arg0, arg1) => {
2406
- const a = state0.a;
2407
- state0.a = 0;
2408
- try {
2409
- return __wasm_bindgen_func_elem_4252(a, state0.b, arg0, arg1);
2410
- } finally {
2411
- state0.a = a;
2412
- }
2413
- };
2414
- const ret = new Promise(cb0);
2415
- return addHeapObject(ret);
2416
- } finally {
2417
- state0.a = state0.b = 0;
2418
- }
2419
- },
2420
- __wbg_new_typed_bccac67128ed885a: function() {
2421
- const ret = new Array();
2422
- return addHeapObject(ret);
2423
- },
2424
- __wbg_new_with_str_299114bdb2430303: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2402
+ __wbg_new_with_str_8406051fb31dddaa: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2425
2403
  const ret = new WebSocket(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
2426
2404
  return addHeapObject(ret);
2427
2405
  }, arguments); },
2428
- __wbg_now_16f0c993d5dd6c27: function() {
2429
- const ret = Date.now();
2406
+ __wbg_now_2c95c9de01293173: function(arg0) {
2407
+ const ret = getObject(arg0).now();
2430
2408
  return ret;
2431
2409
  },
2432
- __wbg_now_e7c6795a7f81e10f: function(arg0) {
2433
- const ret = getObject(arg0).now();
2410
+ __wbg_now_a3af9a2f4bbaa4d1: function() {
2411
+ const ret = Date.now();
2434
2412
  return ret;
2435
2413
  },
2436
- __wbg_onLine_e150233649c2627d: function(arg0) {
2414
+ __wbg_onLine_a52496f5c9a569ec: function(arg0) {
2437
2415
  const ret = getObject(arg0).onLine;
2438
2416
  return ret;
2439
2417
  },
2440
- __wbg_performance_3fcf6e32a7e1ed0a: function(arg0) {
2418
+ __wbg_performance_7a3ffd0b17f663ad: function(arg0) {
2441
2419
  const ret = getObject(arg0).performance;
2442
2420
  return addHeapObject(ret);
2443
2421
  },
2444
- __wbg_port1_869a7ef90538dbdf: function(arg0) {
2422
+ __wbg_port1_6251ddc5cf5c9287: function(arg0) {
2445
2423
  const ret = getObject(arg0).port1;
2446
2424
  return addHeapObject(ret);
2447
2425
  },
2448
- __wbg_port2_947a51b8ba00adc9: function(arg0) {
2426
+ __wbg_port2_b2a294b0ede1e13c: function(arg0) {
2449
2427
  const ret = getObject(arg0).port2;
2450
2428
  return addHeapObject(ret);
2451
2429
  },
2452
- __wbg_postMessage_01834073e06a5a1c: function() { return handleError(function (arg0, arg1) {
2430
+ __wbg_postMessage_46eeeef39934b448: function() { return handleError(function (arg0, arg1) {
2453
2431
  getObject(arg0).postMessage(getObject(arg1));
2454
2432
  }, arguments); },
2455
- __wbg_postMessage_c89a8b5edbf59ad0: function() { return handleError(function (arg0, arg1) {
2433
+ __wbg_postMessage_6962a8f13ab51b6a: function() { return handleError(function (arg0, arg1) {
2456
2434
  getObject(arg0).postMessage(getObject(arg1));
2457
2435
  }, arguments); },
2458
- __wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
2436
+ __wbg_prototypesetcall_bdcdcc5842e4d77d: function(arg0, arg1, arg2) {
2459
2437
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
2460
2438
  },
2461
- __wbg_push_e87b0e732085a946: function(arg0, arg1) {
2439
+ __wbg_push_8ffdcb2063340ba5: function(arg0, arg1) {
2462
2440
  const ret = getObject(arg0).push(getObject(arg1));
2463
2441
  return ret;
2464
2442
  },
2465
- __wbg_queueMicrotask_0c399741342fb10f: function(arg0) {
2443
+ __wbg_queueMicrotask_0aa0a927f78f5d98: function(arg0) {
2466
2444
  const ret = getObject(arg0).queueMicrotask;
2467
2445
  return addHeapObject(ret);
2468
2446
  },
2469
- __wbg_queueMicrotask_a082d78ce798393e: function(arg0) {
2447
+ __wbg_queueMicrotask_5bb536982f78a56f: function(arg0) {
2470
2448
  queueMicrotask(getObject(arg0));
2471
2449
  },
2472
- __wbg_random_5bb86cae65a45bf6: function() {
2450
+ __wbg_random_912284dbf636f269: function() {
2473
2451
  const ret = Math.random();
2474
2452
  return ret;
2475
2453
  },
2476
- __wbg_removeEventListener_d27694700fc0df8b: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2454
+ __wbg_removeEventListener_e63328781a5b9af9: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2477
2455
  getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
2478
2456
  }, arguments); },
2479
- __wbg_resolve_ae8d83246e5bcc12: function(arg0) {
2457
+ __wbg_resolve_002c4b7d9d8f6b64: function(arg0) {
2480
2458
  const ret = Promise.resolve(getObject(arg0));
2481
2459
  return addHeapObject(ret);
2482
2460
  },
2483
- __wbg_send_d31a693c975dea74: function() { return handleError(function (arg0, arg1, arg2) {
2461
+ __wbg_send_542f95dea2df7994: function() { return handleError(function (arg0, arg1, arg2) {
2484
2462
  getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2));
2485
2463
  }, arguments); },
2486
- __wbg_setTimeout_28af72ed644fd498: function(arg0, arg1) {
2464
+ __wbg_setTimeout_b0ff8bfffa18bd8e: function(arg0, arg1) {
2487
2465
  const ret = setTimeout(getObject(arg0), arg1);
2488
2466
  return ret;
2489
2467
  },
2490
- __wbg_setTimeout_ef24d2fc3ad97385: function() { return handleError(function (arg0, arg1) {
2468
+ __wbg_setTimeout_db2dbaeefb6f39c7: function() { return handleError(function (arg0, arg1) {
2491
2469
  const ret = setTimeout(getObject(arg0), arg1);
2492
2470
  return addHeapObject(ret);
2493
2471
  }, arguments); },
2494
- __wbg_set_7eaa4f96924fd6b3: function() { return handleError(function (arg0, arg1, arg2) {
2472
+ __wbg_set_6cb8631f80447a67: function() { return handleError(function (arg0, arg1, arg2) {
2495
2473
  const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
2496
2474
  return ret;
2497
2475
  }, arguments); },
2498
- __wbg_set_binaryType_3dcf8281ec100a8f: function(arg0, arg1) {
2476
+ __wbg_set_binaryType_5bbf62e9f705dc1a: function(arg0, arg1) {
2499
2477
  getObject(arg0).binaryType = __wbindgen_enum_BinaryType[arg1];
2500
2478
  },
2501
- __wbg_set_once_617be4b8bd597c38: function(arg0, arg1) {
2479
+ __wbg_set_once_56ba1b87a9884c15: function(arg0, arg1) {
2502
2480
  getObject(arg0).once = arg1 !== 0;
2503
2481
  },
2504
- __wbg_set_onclose_8da801226bdd7a7b: function(arg0, arg1) {
2482
+ __wbg_set_onclose_d382f3e2c2b850eb: function(arg0, arg1) {
2505
2483
  getObject(arg0).onclose = getObject(arg1);
2506
2484
  },
2507
- __wbg_set_onerror_901ca711f94a5bbb: function(arg0, arg1) {
2485
+ __wbg_set_onerror_377f18bf4569bf85: function(arg0, arg1) {
2508
2486
  getObject(arg0).onerror = getObject(arg1);
2509
2487
  },
2510
- __wbg_set_onmessage_59fc1df5e83ed05e: function(arg0, arg1) {
2488
+ __wbg_set_onmessage_0e1ffb1c0d91d2ad: function(arg0, arg1) {
2511
2489
  getObject(arg0).onmessage = getObject(arg1);
2512
2490
  },
2513
- __wbg_set_onmessage_6f80ab771bf151aa: function(arg0, arg1) {
2491
+ __wbg_set_onmessage_2114aa5f4f53051e: function(arg0, arg1) {
2514
2492
  getObject(arg0).onmessage = getObject(arg1);
2515
2493
  },
2516
- __wbg_set_onmessage_f939f8b6d08ca76b: function(arg0, arg1) {
2494
+ __wbg_set_onmessage_41e84d56e3597e90: function(arg0, arg1) {
2517
2495
  getObject(arg0).onmessage = getObject(arg1);
2518
2496
  },
2519
- __wbg_set_onopen_34e3e24cf9337ddd: function(arg0, arg1) {
2497
+ __wbg_set_onopen_b7b52d519d6c0f11: function(arg0, arg1) {
2520
2498
  getObject(arg0).onopen = getObject(arg1);
2521
2499
  },
2522
- __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
2500
+ __wbg_stack_0ed75d68575b0f3c: function(arg0, arg1) {
2523
2501
  const ret = getObject(arg1).stack;
2524
2502
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2525
2503
  const len1 = WASM_VECTOR_LEN;
2526
2504
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2527
2505
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2528
2506
  },
2529
- __wbg_start_f837ba2bac4733b5: function(arg0) {
2507
+ __wbg_start_ffb4b426b1e661bd: function(arg0) {
2530
2508
  getObject(arg0).start();
2531
2509
  },
2532
- __wbg_static_accessor_GLOBAL_8adb955bd33fac2f: function() {
2510
+ __wbg_static_accessor_GLOBAL_12837167ad935116: function() {
2533
2511
  const ret = typeof global === 'undefined' ? null : global;
2534
2512
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
2535
2513
  },
2536
- __wbg_static_accessor_GLOBAL_THIS_ad356e0db91c7913: function() {
2514
+ __wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f: function() {
2537
2515
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
2538
2516
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
2539
2517
  },
2540
- __wbg_static_accessor_SELF_f207c857566db248: function() {
2518
+ __wbg_static_accessor_SELF_a621d3dfbb60d0ce: function() {
2541
2519
  const ret = typeof self === 'undefined' ? null : self;
2542
2520
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
2543
2521
  },
2544
- __wbg_static_accessor_WINDOW_bb9f1ba69d61b386: function() {
2522
+ __wbg_static_accessor_WINDOW_f8727f0cf888e0bd: function() {
2545
2523
  const ret = typeof window === 'undefined' ? null : window;
2546
2524
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
2547
2525
  },
2548
- __wbg_then_098abe61755d12f6: function(arg0, arg1) {
2549
- const ret = getObject(arg0).then(getObject(arg1));
2526
+ __wbg_then_0d9fe2c7b1857d32: function(arg0, arg1, arg2) {
2527
+ const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
2550
2528
  return addHeapObject(ret);
2551
2529
  },
2552
- __wbg_then_9e335f6dd892bc11: function(arg0, arg1, arg2) {
2553
- const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
2530
+ __wbg_then_b9e7b3b5f1a9e1b5: function(arg0, arg1) {
2531
+ const ret = getObject(arg0).then(getObject(arg1));
2554
2532
  return addHeapObject(ret);
2555
2533
  },
2556
- __wbg_warn_69424c2d92a2fa73: function(arg0) {
2534
+ __wbg_warn_f7ae1b2e66ccb930: function(arg0) {
2557
2535
  console.warn(getObject(arg0));
2558
2536
  },
2559
2537
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
2560
- // Cast intrinsic for `Closure(Closure { dtor_idx: 425, function: Function { arguments: [], shim_idx: 426, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2561
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2610, __wasm_bindgen_func_elem_2630);
2538
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 394, function: Function { arguments: [], shim_idx: 395, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2539
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2552, __wasm_bindgen_func_elem_2572);
2562
2540
  return addHeapObject(ret);
2563
2541
  },
2564
2542
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
2565
- // Cast intrinsic for `Closure(Closure { dtor_idx: 443, function: Function { arguments: [Externref], shim_idx: 607, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2566
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2770, __wasm_bindgen_func_elem_4240);
2543
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 413, function: Function { arguments: [Externref], shim_idx: 414, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2544
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2709, __wasm_bindgen_func_elem_2725);
2567
2545
  return addHeapObject(ret);
2568
2546
  },
2569
2547
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
2570
- // Cast intrinsic for `Closure(Closure { dtor_idx: 9, function: Function { arguments: [Externref], shim_idx: 10, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2571
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_183, __wasm_bindgen_func_elem_1047);
2548
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 9, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2549
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_139, __wasm_bindgen_func_elem_1018);
2572
2550
  return addHeapObject(ret);
2573
2551
  },
2574
2552
  __wbindgen_cast_0000000000000004: function(arg0, arg1) {
2575
- // Cast intrinsic for `Closure(Closure { dtor_idx: 9, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 10, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2576
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_183, __wasm_bindgen_func_elem_1047_3);
2553
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 9, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2554
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_139, __wasm_bindgen_func_elem_1018);
2577
2555
  return addHeapObject(ret);
2578
2556
  },
2579
2557
  __wbindgen_cast_0000000000000005: function(arg0, arg1) {
2580
- // Cast intrinsic for `Closure(Closure { dtor_idx: 9, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 10, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2581
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_183, __wasm_bindgen_func_elem_1047_4);
2558
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 9, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2559
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_139, __wasm_bindgen_func_elem_1018);
2582
2560
  return addHeapObject(ret);
2583
2561
  },
2584
- __wbindgen_cast_0000000000000006: function(arg0, arg1) {
2585
- // Cast intrinsic for `Closure(Closure { dtor_idx: 9, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 10, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2586
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_183, __wasm_bindgen_func_elem_1047_5);
2587
- return addHeapObject(ret);
2588
- },
2589
- __wbindgen_cast_0000000000000007: function(arg0) {
2562
+ __wbindgen_cast_0000000000000006: function(arg0) {
2590
2563
  // Cast intrinsic for `F64 -> Externref`.
2591
2564
  const ret = arg0;
2592
2565
  return addHeapObject(ret);
2593
2566
  },
2594
- __wbindgen_cast_0000000000000008: function(arg0, arg1) {
2567
+ __wbindgen_cast_0000000000000007: function(arg0, arg1) {
2595
2568
  // Cast intrinsic for `Ref(String) -> Externref`.
2596
2569
  const ret = getStringFromWasm0(arg0, arg1);
2597
2570
  return addHeapObject(ret);
2598
2571
  },
2599
- __wbindgen_cast_0000000000000009: function(arg0, arg1) {
2572
+ __wbindgen_cast_0000000000000008: function(arg0, arg1) {
2600
2573
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
2601
2574
  wasm.__wbindgen_export4(arg0, arg1 * 4, 4);
2602
2575
  // Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
@@ -2617,42 +2590,20 @@ function __wbg_get_imports() {
2617
2590
  };
2618
2591
  }
2619
2592
 
2620
- function __wasm_bindgen_func_elem_2630(arg0, arg1) {
2621
- wasm.__wasm_bindgen_func_elem_2630(arg0, arg1);
2593
+ function __wasm_bindgen_func_elem_2572(arg0, arg1) {
2594
+ wasm.__wasm_bindgen_func_elem_2572(arg0, arg1);
2622
2595
  }
2623
2596
 
2624
- function __wasm_bindgen_func_elem_1047(arg0, arg1, arg2) {
2625
- wasm.__wasm_bindgen_func_elem_1047(arg0, arg1, addHeapObject(arg2));
2597
+ function __wasm_bindgen_func_elem_2725(arg0, arg1, arg2) {
2598
+ wasm.__wasm_bindgen_func_elem_2725(arg0, arg1, addHeapObject(arg2));
2626
2599
  }
2627
2600
 
2628
- function __wasm_bindgen_func_elem_1047_3(arg0, arg1, arg2) {
2629
- wasm.__wasm_bindgen_func_elem_1047_3(arg0, arg1, addHeapObject(arg2));
2630
- }
2631
-
2632
- function __wasm_bindgen_func_elem_1047_4(arg0, arg1, arg2) {
2633
- wasm.__wasm_bindgen_func_elem_1047_4(arg0, arg1, addHeapObject(arg2));
2634
- }
2635
-
2636
- function __wasm_bindgen_func_elem_1047_5(arg0, arg1, arg2) {
2637
- wasm.__wasm_bindgen_func_elem_1047_5(arg0, arg1, addHeapObject(arg2));
2638
- }
2639
-
2640
- function __wasm_bindgen_func_elem_4240(arg0, arg1, arg2) {
2641
- try {
2642
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2643
- wasm.__wasm_bindgen_func_elem_4240(retptr, arg0, arg1, addHeapObject(arg2));
2644
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2645
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2646
- if (r1) {
2647
- throw takeObject(r0);
2648
- }
2649
- } finally {
2650
- wasm.__wbindgen_add_to_stack_pointer(16);
2651
- }
2601
+ function __wasm_bindgen_func_elem_1018(arg0, arg1, arg2) {
2602
+ wasm.__wasm_bindgen_func_elem_1018(arg0, arg1, addHeapObject(arg2));
2652
2603
  }
2653
2604
 
2654
- function __wasm_bindgen_func_elem_4252(arg0, arg1, arg2, arg3) {
2655
- wasm.__wasm_bindgen_func_elem_4252(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
2605
+ function __wasm_bindgen_func_elem_4189(arg0, arg1, arg2, arg3) {
2606
+ wasm.__wasm_bindgen_func_elem_4189(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
2656
2607
  }
2657
2608
 
2658
2609
 
@@ -2785,7 +2736,7 @@ function debugString(val) {
2785
2736
  }
2786
2737
 
2787
2738
  function dropObject(idx) {
2788
- if (idx < 1028) return;
2739
+ if (idx < 132) return;
2789
2740
  heap[idx] = heap_next;
2790
2741
  heap_next = idx;
2791
2742
  }
@@ -2849,7 +2800,7 @@ function handleError(f, args) {
2849
2800
  }
2850
2801
  }
2851
2802
 
2852
- let heap = new Array(1024).fill(undefined);
2803
+ let heap = new Array(128).fill(undefined);
2853
2804
  heap.push(undefined, null, true, false);
2854
2805
 
2855
2806
  let heap_next = heap.length;
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mqtt5-wasm",
3
3
  "type": "module",
4
- "version": "1.2.0",
4
+ "version": "1.3.2",
5
5
  "description": "MQTT v5.0 WebAssembly client and broker for browser environments",
6
6
  "license": "MIT OR Apache-2.0",
7
7
  "repository": {
@@ -11,14 +11,10 @@
11
11
  "files": [
12
12
  "mqtt5_wasm_bg.wasm",
13
13
  "mqtt5_wasm.js",
14
- "mqtt5_wasm.d.ts",
15
- "mqtt5_wasm_bg.wasm.d.ts"
14
+ "mqtt5_wasm.d.ts"
16
15
  ],
17
16
  "main": "mqtt5_wasm.js",
18
17
  "types": "mqtt5_wasm.d.ts",
19
- "sideEffects": [
20
- "./mqtt5_wasm.js"
21
- ],
22
18
  "keywords": [
23
19
  "mqtt",
24
20
  "wasm",
@@ -1,252 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- export const memory: WebAssembly.Memory;
4
- export const __wbg_bridgeconfig_free: (a: number, b: number) => void;
5
- export const __wbg_broker_free: (a: number, b: number) => void;
6
- export const __wbg_brokerconfig_free: (a: number, b: number) => void;
7
- export const __wbg_codecregistry_free: (a: number, b: number) => void;
8
- export const __wbg_connectoptions_free: (a: number, b: number) => void;
9
- export const __wbg_deflatecodec_free: (a: number, b: number) => void;
10
- export const __wbg_messageproperties_free: (a: number, b: number) => void;
11
- export const __wbg_mqttclient_free: (a: number, b: number) => void;
12
- export const __wbg_publishoptions_free: (a: number, b: number) => void;
13
- export const __wbg_reconnectoptions_free: (a: number, b: number) => void;
14
- export const __wbg_subscribeoptions_free: (a: number, b: number) => void;
15
- export const __wbg_topicmapping_free: (a: number, b: number) => void;
16
- export const __wbg_willmessage_free: (a: number, b: number) => void;
17
- export const bridgeconfig_addTopic: (a: number, b: number) => void;
18
- export const bridgeconfig_new: (a: number, b: number) => number;
19
- export const bridgeconfig_set_cleanStart: (a: number, b: number) => void;
20
- export const bridgeconfig_set_clientId: (a: number, b: number, c: number) => void;
21
- export const bridgeconfig_set_keepAliveSecs: (a: number, b: number) => void;
22
- export const bridgeconfig_set_loopPreventionCacheSize: (a: number, b: number) => void;
23
- export const bridgeconfig_set_loopPreventionTtlSecs: (a: number, b: bigint) => void;
24
- export const bridgeconfig_set_password: (a: number, b: number, c: number) => void;
25
- export const bridgeconfig_set_username: (a: number, b: number, c: number) => void;
26
- export const bridgeconfig_validate: (a: number, b: number) => void;
27
- export const broker_aclRuleCount: (a: number) => number;
28
- export const broker_addAclRule: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
29
- export const broker_addBridge: (a: number, b: number, c: number) => number;
30
- export const broker_addBridgeWebSocket: (a: number, b: number, c: number, d: number, e: number) => number;
31
- export const broker_addRole: (a: number, b: number, c: number) => number;
32
- export const broker_addRoleRule: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
33
- export const broker_addUser: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
34
- export const broker_addUserWithHash: (a: number, b: number, c: number, d: number, e: number) => void;
35
- export const broker_assignRole: (a: number, b: number, c: number, d: number, e: number) => number;
36
- export const broker_clearAclRules: (a: number) => number;
37
- export const broker_clearRoles: (a: number) => number;
38
- export const broker_createClientPort: (a: number, b: number) => void;
39
- export const broker_getConfigHash: (a: number) => number;
40
- export const broker_getMaxClients: (a: number) => number;
41
- export const broker_getMaxPacketSize: (a: number) => number;
42
- export const broker_getSessionExpiryIntervalSecs: (a: number) => number;
43
- export const broker_getUserRoles: (a: number, b: number, c: number) => number;
44
- export const broker_hasUser: (a: number, b: number, c: number) => number;
45
- export const broker_hashPassword: (a: number, b: number, c: number) => void;
46
- export const broker_listBridges: (a: number, b: number) => void;
47
- export const broker_listRoles: (a: number) => number;
48
- export const broker_new: (a: number) => void;
49
- export const broker_onClientConnect: (a: number, b: number) => void;
50
- export const broker_onClientDisconnect: (a: number, b: number) => void;
51
- export const broker_onClientPublish: (a: number, b: number) => void;
52
- export const broker_onClientSubscribe: (a: number, b: number) => void;
53
- export const broker_onClientUnsubscribe: (a: number, b: number) => void;
54
- export const broker_onConfigChange: (a: number, b: number) => void;
55
- export const broker_onMessageDelivered: (a: number, b: number) => void;
56
- export const broker_removeBridge: (a: number, b: number, c: number) => number;
57
- export const broker_removeRole: (a: number, b: number, c: number) => number;
58
- export const broker_removeUser: (a: number, b: number, c: number) => number;
59
- export const broker_roleCount: (a: number) => number;
60
- export const broker_setAclDefaultAllow: (a: number) => number;
61
- export const broker_setAclDefaultDeny: (a: number) => number;
62
- export const broker_startSysTopics: (a: number) => void;
63
- export const broker_startSysTopicsWithIntervalSecs: (a: number, b: number) => void;
64
- export const broker_stopAllBridges: (a: number) => number;
65
- export const broker_stopSysTopics: (a: number) => void;
66
- export const broker_unassignRole: (a: number, b: number, c: number, d: number, e: number) => number;
67
- export const broker_updateConfig: (a: number, b: number, c: number) => void;
68
- export const broker_userCount: (a: number) => number;
69
- export const broker_withConfig: (a: number, b: number) => void;
70
- export const brokerconfig_addChangeOnlyDeliveryPattern: (a: number, b: number, c: number) => void;
71
- export const brokerconfig_addLoadBalancerBackend: (a: number, b: number, c: number) => void;
72
- export const brokerconfig_clearChangeOnlyDeliveryPatterns: (a: number) => void;
73
- export const brokerconfig_clearLoadBalancerBackends: (a: number) => void;
74
- export const brokerconfig_new: () => number;
75
- export const brokerconfig_set_allowAnonymous: (a: number, b: number) => void;
76
- export const brokerconfig_set_changeOnlyDeliveryEnabled: (a: number, b: number) => void;
77
- export const brokerconfig_set_echoSuppressionEnabled: (a: number, b: number) => void;
78
- export const brokerconfig_set_echoSuppressionPropertyKey: (a: number, b: number, c: number) => void;
79
- export const brokerconfig_set_maxClients: (a: number, b: number) => void;
80
- export const brokerconfig_set_maxOutboundRatePerClient: (a: number, b: number) => void;
81
- export const brokerconfig_set_maxPacketSize: (a: number, b: number) => void;
82
- export const brokerconfig_set_maximumQos: (a: number, b: number) => void;
83
- export const brokerconfig_set_retainAvailable: (a: number, b: number) => void;
84
- export const brokerconfig_set_serverKeepAliveSecs: (a: number, b: number) => void;
85
- export const brokerconfig_set_sessionExpiryIntervalSecs: (a: number, b: number) => void;
86
- export const brokerconfig_set_sharedSubscriptionAvailable: (a: number, b: number) => void;
87
- export const brokerconfig_set_subscriptionIdentifierAvailable: (a: number, b: number) => void;
88
- export const brokerconfig_set_topicAliasMaximum: (a: number, b: number) => void;
89
- export const brokerconfig_set_wildcardSubscriptionAvailable: (a: number, b: number) => void;
90
- export const codecregistry_getDefault: (a: number, b: number) => void;
91
- export const codecregistry_hasCodec: (a: number, b: number, c: number) => number;
92
- export const codecregistry_new: () => number;
93
- export const codecregistry_registerDeflate: (a: number, b: number) => void;
94
- export const codecregistry_registerGzip: (a: number, b: number) => void;
95
- export const codecregistry_setDefault: (a: number, b: number, c: number, d: number) => void;
96
- export const connectoptions_addBackupUrl: (a: number, b: number, c: number) => void;
97
- export const connectoptions_addUserProperty: (a: number, b: number, c: number, d: number, e: number) => void;
98
- export const connectoptions_authenticationMethod: (a: number, b: number) => void;
99
- export const connectoptions_cleanStart: (a: number) => number;
100
- export const connectoptions_clearBackupUrls: (a: number) => void;
101
- export const connectoptions_clearCodecRegistry: (a: number) => void;
102
- export const connectoptions_clearUserProperties: (a: number) => void;
103
- export const connectoptions_clearWill: (a: number) => void;
104
- export const connectoptions_getBackupUrls: (a: number, b: number) => void;
105
- export const connectoptions_keepAlive: (a: number) => number;
106
- export const connectoptions_maximumPacketSize: (a: number) => number;
107
- export const connectoptions_new: () => number;
108
- export const connectoptions_protocolVersion: (a: number) => number;
109
- export const connectoptions_receiveMaximum: (a: number) => number;
110
- export const connectoptions_requestProblemInformation: (a: number) => number;
111
- export const connectoptions_requestResponseInformation: (a: number) => number;
112
- export const connectoptions_sessionExpiryInterval: (a: number) => number;
113
- export const connectoptions_setCodecRegistry: (a: number, b: number) => void;
114
- export const connectoptions_setWill: (a: number, b: number) => void;
115
- export const connectoptions_set_authenticationData: (a: number, b: number, c: number) => void;
116
- export const connectoptions_set_authenticationMethod: (a: number, b: number, c: number) => void;
117
- export const connectoptions_set_cleanStart: (a: number, b: number) => void;
118
- export const connectoptions_set_keepAlive: (a: number, b: number) => void;
119
- export const connectoptions_set_maximumPacketSize: (a: number, b: number) => void;
120
- export const connectoptions_set_password: (a: number, b: number, c: number) => void;
121
- export const connectoptions_set_protocolVersion: (a: number, b: number) => void;
122
- export const connectoptions_set_receiveMaximum: (a: number, b: number) => void;
123
- export const connectoptions_set_requestProblemInformation: (a: number, b: number) => void;
124
- export const connectoptions_set_requestResponseInformation: (a: number, b: number) => void;
125
- export const connectoptions_set_sessionExpiryInterval: (a: number, b: number) => void;
126
- export const connectoptions_set_topicAliasMaximum: (a: number, b: number) => void;
127
- export const connectoptions_set_username: (a: number, b: number, c: number) => void;
128
- export const connectoptions_topicAliasMaximum: (a: number) => number;
129
- export const connectoptions_username: (a: number, b: number) => void;
130
- export const createDeflateCodec: (a: number, b: number) => number;
131
- export const deflatecodec_new: () => number;
132
- export const deflatecodec_withLevel: (a: number, b: number) => number;
133
- export const deflatecodec_withMaxDecompressedSize: (a: number, b: number) => number;
134
- export const deflatecodec_withMinSize: (a: number, b: number) => number;
135
- export const messageproperties_contentType: (a: number, b: number) => void;
136
- export const messageproperties_correlationData: (a: number, b: number) => void;
137
- export const messageproperties_getUserProperties: (a: number) => number;
138
- export const messageproperties_messageExpiryInterval: (a: number) => number;
139
- export const messageproperties_payloadFormatIndicator: (a: number) => number;
140
- export const messageproperties_responseTopic: (a: number, b: number) => void;
141
- export const messageproperties_subscriptionIdentifiers: (a: number, b: number) => void;
142
- export const mqttclient_connect: (a: number, b: number, c: number) => number;
143
- export const mqttclient_connectBroadcastChannel: (a: number, b: number, c: number) => number;
144
- export const mqttclient_connectMessagePort: (a: number, b: number) => number;
145
- export const mqttclient_connectMessagePortWithOptions: (a: number, b: number, c: number) => number;
146
- export const mqttclient_connectWithOptions: (a: number, b: number, c: number, d: number) => number;
147
- export const mqttclient_destroy: (a: number) => void;
148
- export const mqttclient_disconnect: (a: number) => number;
149
- export const mqttclient_enableAutoReconnect: (a: number, b: number) => void;
150
- export const mqttclient_isBrowserOnline: (a: number) => number;
151
- export const mqttclient_isConnected: (a: number) => number;
152
- export const mqttclient_isReconnecting: (a: number) => number;
153
- export const mqttclient_new: (a: number, b: number) => number;
154
- export const mqttclient_onAuthChallenge: (a: number, b: number) => void;
155
- export const mqttclient_onConnect: (a: number, b: number) => void;
156
- export const mqttclient_onConnectivityChange: (a: number, b: number) => void;
157
- export const mqttclient_onDisconnect: (a: number, b: number) => void;
158
- export const mqttclient_onError: (a: number, b: number) => void;
159
- export const mqttclient_onReconnectFailed: (a: number, b: number) => void;
160
- export const mqttclient_onReconnecting: (a: number, b: number) => void;
161
- export const mqttclient_publish: (a: number, b: number, c: number, d: number, e: number) => number;
162
- export const mqttclient_publishQos1: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
163
- export const mqttclient_publishQos2: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
164
- export const mqttclient_publishWithOptions: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
165
- export const mqttclient_respondAuth: (a: number, b: number, c: number, d: number) => void;
166
- export const mqttclient_setReconnectOptions: (a: number, b: number) => void;
167
- export const mqttclient_subscribe: (a: number, b: number, c: number) => number;
168
- export const mqttclient_subscribeWithCallback: (a: number, b: number, c: number, d: number) => number;
169
- export const mqttclient_subscribeWithOptions: (a: number, b: number, c: number, d: number, e: number) => number;
170
- export const mqttclient_unsubscribe: (a: number, b: number, c: number) => number;
171
- export const publishoptions_addUserProperty: (a: number, b: number, c: number, d: number, e: number) => void;
172
- export const publishoptions_clearUserProperties: (a: number) => void;
173
- export const publishoptions_contentType: (a: number, b: number) => void;
174
- export const publishoptions_messageExpiryInterval: (a: number) => number;
175
- export const publishoptions_new: () => number;
176
- export const publishoptions_payloadFormatIndicator: (a: number) => number;
177
- export const publishoptions_qos: (a: number) => number;
178
- export const publishoptions_responseTopic: (a: number, b: number) => void;
179
- export const publishoptions_retain: (a: number) => number;
180
- export const publishoptions_set_contentType: (a: number, b: number, c: number) => void;
181
- export const publishoptions_set_correlationData: (a: number, b: number, c: number) => void;
182
- export const publishoptions_set_messageExpiryInterval: (a: number, b: number) => void;
183
- export const publishoptions_set_payloadFormatIndicator: (a: number, b: number) => void;
184
- export const publishoptions_set_qos: (a: number, b: number) => void;
185
- export const publishoptions_set_responseTopic: (a: number, b: number, c: number) => void;
186
- export const publishoptions_set_retain: (a: number, b: number) => void;
187
- export const publishoptions_set_topicAlias: (a: number, b: number) => void;
188
- export const publishoptions_topicAlias: (a: number) => number;
189
- export const reconnectoptions_backoffFactor: (a: number) => number;
190
- export const reconnectoptions_disabled: () => number;
191
- export const reconnectoptions_enabled: (a: number) => number;
192
- export const reconnectoptions_initialDelayMs: (a: number) => number;
193
- export const reconnectoptions_maxAttempts: (a: number) => number;
194
- export const reconnectoptions_maxDelayMs: (a: number) => number;
195
- export const reconnectoptions_new: () => number;
196
- export const reconnectoptions_set_backoffFactor: (a: number, b: number) => void;
197
- export const reconnectoptions_set_enabled: (a: number, b: number) => void;
198
- export const reconnectoptions_set_initialDelayMs: (a: number, b: number) => void;
199
- export const reconnectoptions_set_maxAttempts: (a: number, b: number) => void;
200
- export const reconnectoptions_set_maxDelayMs: (a: number, b: number) => void;
201
- export const subscribeoptions_new: () => number;
202
- export const subscribeoptions_noLocal: (a: number) => number;
203
- export const subscribeoptions_qos: (a: number) => number;
204
- export const subscribeoptions_retainAsPublished: (a: number) => number;
205
- export const subscribeoptions_retainHandling: (a: number) => number;
206
- export const subscribeoptions_set_noLocal: (a: number, b: number) => void;
207
- export const subscribeoptions_set_qos: (a: number, b: number) => void;
208
- export const subscribeoptions_set_retainAsPublished: (a: number, b: number) => void;
209
- export const subscribeoptions_set_retainHandling: (a: number, b: number) => void;
210
- export const subscribeoptions_set_subscriptionIdentifier: (a: number, b: number) => void;
211
- export const subscribeoptions_subscriptionIdentifier: (a: number) => number;
212
- export const topicmapping_new: (a: number, b: number, c: number) => number;
213
- export const topicmapping_set_localPrefix: (a: number, b: number, c: number) => void;
214
- export const topicmapping_set_qos: (a: number, b: number) => void;
215
- export const topicmapping_set_remotePrefix: (a: number, b: number, c: number) => void;
216
- export const willmessage_contentType: (a: number, b: number) => void;
217
- export const willmessage_messageExpiryInterval: (a: number) => number;
218
- export const willmessage_new: (a: number, b: number, c: number, d: number) => number;
219
- export const willmessage_qos: (a: number) => number;
220
- export const willmessage_responseTopic: (a: number, b: number) => void;
221
- export const willmessage_retain: (a: number) => number;
222
- export const willmessage_set_contentType: (a: number, b: number, c: number) => void;
223
- export const willmessage_set_messageExpiryInterval: (a: number, b: number) => void;
224
- export const willmessage_set_qos: (a: number, b: number) => void;
225
- export const willmessage_set_responseTopic: (a: number, b: number, c: number) => void;
226
- export const willmessage_set_retain: (a: number, b: number) => void;
227
- export const willmessage_set_topic: (a: number, b: number, c: number) => void;
228
- export const willmessage_set_willDelayInterval: (a: number, b: number) => void;
229
- export const willmessage_topic: (a: number, b: number) => void;
230
- export const willmessage_willDelayInterval: (a: number) => number;
231
- export const createCodecRegistry: () => number;
232
- export const gzipcodec_withLevel: (a: number, b: number) => number;
233
- export const gzipcodec_new: () => number;
234
- export const createGzipCodec: (a: number, b: number) => number;
235
- export const __wbg_gzipcodec_free: (a: number, b: number) => void;
236
- export const gzipcodec_withMinSize: (a: number, b: number) => number;
237
- export const gzipcodec_withMaxDecompressedSize: (a: number, b: number) => number;
238
- export const __wasm_bindgen_func_elem_2610: (a: number, b: number) => void;
239
- export const __wasm_bindgen_func_elem_2770: (a: number, b: number) => void;
240
- export const __wasm_bindgen_func_elem_183: (a: number, b: number) => void;
241
- export const __wasm_bindgen_func_elem_4240: (a: number, b: number, c: number, d: number) => void;
242
- export const __wasm_bindgen_func_elem_4252: (a: number, b: number, c: number, d: number) => void;
243
- export const __wasm_bindgen_func_elem_1047: (a: number, b: number, c: number) => void;
244
- export const __wasm_bindgen_func_elem_1047_3: (a: number, b: number, c: number) => void;
245
- export const __wasm_bindgen_func_elem_1047_4: (a: number, b: number, c: number) => void;
246
- export const __wasm_bindgen_func_elem_1047_5: (a: number, b: number, c: number) => void;
247
- export const __wasm_bindgen_func_elem_2630: (a: number, b: number) => void;
248
- export const __wbindgen_export: (a: number, b: number) => number;
249
- export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
250
- export const __wbindgen_export3: (a: number) => void;
251
- export const __wbindgen_export4: (a: number, b: number, c: number) => void;
252
- export const __wbindgen_add_to_stack_pointer: (a: number) => number;