mqtt5-wasm 1.0.0 → 1.1.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/README.md +1 -1
- package/mqtt5_wasm.d.ts +17 -9
- package/mqtt5_wasm.js +48 -25
- package/mqtt5_wasm_bg.wasm +0 -0
- package/mqtt5_wasm_bg.wasm.d.ts +250 -0
- package/package.json +6 -2
package/README.md
CHANGED
package/mqtt5_wasm.d.ts
CHANGED
|
@@ -51,6 +51,11 @@ export class Broker {
|
|
|
51
51
|
* Returns an error if the bridge cannot be added.
|
|
52
52
|
*/
|
|
53
53
|
addBridge(config: BridgeConfig, remotePort: MessagePort): Promise<void>;
|
|
54
|
+
/**
|
|
55
|
+
* # Errors
|
|
56
|
+
* Returns an error if the bridge cannot be added or WebSocket connection fails.
|
|
57
|
+
*/
|
|
58
|
+
addBridgeWebSocket(config: BridgeConfig, url: string, opts: ConnectOptions): Promise<void>;
|
|
54
59
|
addRole(name: string): Promise<void>;
|
|
55
60
|
/**
|
|
56
61
|
* # Errors
|
|
@@ -139,6 +144,7 @@ export class BrokerConfig {
|
|
|
139
144
|
set echoSuppressionEnabled(value: boolean);
|
|
140
145
|
set echoSuppressionPropertyKey(value: string | null | undefined);
|
|
141
146
|
set maxClients(value: number);
|
|
147
|
+
set maxOutboundRatePerClient(value: number);
|
|
142
148
|
set maxPacketSize(value: number);
|
|
143
149
|
set maximumQos(value: number);
|
|
144
150
|
set retainAvailable(value: boolean);
|
|
@@ -434,6 +440,7 @@ export interface InitOutput {
|
|
|
434
440
|
readonly broker_aclRuleCount: (a: number) => number;
|
|
435
441
|
readonly broker_addAclRule: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
436
442
|
readonly broker_addBridge: (a: number, b: number, c: number) => number;
|
|
443
|
+
readonly broker_addBridgeWebSocket: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
437
444
|
readonly broker_addRole: (a: number, b: number, c: number) => number;
|
|
438
445
|
readonly broker_addRoleRule: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
439
446
|
readonly broker_addUser: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
@@ -481,6 +488,7 @@ export interface InitOutput {
|
|
|
481
488
|
readonly brokerconfig_set_echoSuppressionEnabled: (a: number, b: number) => void;
|
|
482
489
|
readonly brokerconfig_set_echoSuppressionPropertyKey: (a: number, b: number, c: number) => void;
|
|
483
490
|
readonly brokerconfig_set_maxClients: (a: number, b: number) => void;
|
|
491
|
+
readonly brokerconfig_set_maxOutboundRatePerClient: (a: number, b: number) => void;
|
|
484
492
|
readonly brokerconfig_set_maxPacketSize: (a: number, b: number) => void;
|
|
485
493
|
readonly brokerconfig_set_maximumQos: (a: number, b: number) => void;
|
|
486
494
|
readonly brokerconfig_set_retainAvailable: (a: number, b: number) => void;
|
|
@@ -638,16 +646,16 @@ export interface InitOutput {
|
|
|
638
646
|
readonly gzipcodec_withMaxDecompressedSize: (a: number, b: number) => number;
|
|
639
647
|
readonly __wbg_gzipcodec_free: (a: number, b: number) => void;
|
|
640
648
|
readonly gzipcodec_withLevel: (a: number, b: number) => number;
|
|
641
|
-
readonly
|
|
642
|
-
readonly
|
|
649
|
+
readonly __wasm_bindgen_func_elem_2606: (a: number, b: number) => void;
|
|
650
|
+
readonly __wasm_bindgen_func_elem_2766: (a: number, b: number) => void;
|
|
643
651
|
readonly __wasm_bindgen_func_elem_184: (a: number, b: number) => void;
|
|
644
|
-
readonly
|
|
645
|
-
readonly
|
|
646
|
-
readonly
|
|
647
|
-
readonly
|
|
648
|
-
readonly
|
|
649
|
-
readonly
|
|
650
|
-
readonly
|
|
652
|
+
readonly __wasm_bindgen_func_elem_4228: (a: number, b: number, c: number, d: number) => void;
|
|
653
|
+
readonly __wasm_bindgen_func_elem_4240: (a: number, b: number, c: number, d: number) => void;
|
|
654
|
+
readonly __wasm_bindgen_func_elem_1043: (a: number, b: number, c: number) => void;
|
|
655
|
+
readonly __wasm_bindgen_func_elem_1043_3: (a: number, b: number, c: number) => void;
|
|
656
|
+
readonly __wasm_bindgen_func_elem_1043_4: (a: number, b: number, c: number) => void;
|
|
657
|
+
readonly __wasm_bindgen_func_elem_1043_5: (a: number, b: number, c: number) => void;
|
|
658
|
+
readonly __wasm_bindgen_func_elem_2626: (a: number, b: number) => void;
|
|
651
659
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
652
660
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
653
661
|
readonly __wbindgen_export3: (a: number) => void;
|
package/mqtt5_wasm.js
CHANGED
|
@@ -170,6 +170,23 @@ export class Broker {
|
|
|
170
170
|
const ret = wasm.broker_addBridge(this.__wbg_ptr, ptr0, addHeapObject(remotePort));
|
|
171
171
|
return takeObject(ret);
|
|
172
172
|
}
|
|
173
|
+
/**
|
|
174
|
+
* # Errors
|
|
175
|
+
* Returns an error if the bridge cannot be added or WebSocket connection fails.
|
|
176
|
+
* @param {BridgeConfig} config
|
|
177
|
+
* @param {string} url
|
|
178
|
+
* @param {ConnectOptions} opts
|
|
179
|
+
* @returns {Promise<void>}
|
|
180
|
+
*/
|
|
181
|
+
addBridgeWebSocket(config, url, opts) {
|
|
182
|
+
_assertClass(config, BridgeConfig);
|
|
183
|
+
var ptr0 = config.__destroy_into_raw();
|
|
184
|
+
const ptr1 = passStringToWasm0(url, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
185
|
+
const len1 = WASM_VECTOR_LEN;
|
|
186
|
+
_assertClass(opts, ConnectOptions);
|
|
187
|
+
const ret = wasm.broker_addBridgeWebSocket(this.__wbg_ptr, ptr0, ptr1, len1, opts.__wbg_ptr);
|
|
188
|
+
return takeObject(ret);
|
|
189
|
+
}
|
|
173
190
|
/**
|
|
174
191
|
* @param {string} name
|
|
175
192
|
* @returns {Promise<void>}
|
|
@@ -645,6 +662,12 @@ export class BrokerConfig {
|
|
|
645
662
|
set maxClients(value) {
|
|
646
663
|
wasm.brokerconfig_set_maxClients(this.__wbg_ptr, value);
|
|
647
664
|
}
|
|
665
|
+
/**
|
|
666
|
+
* @param {number} value
|
|
667
|
+
*/
|
|
668
|
+
set maxOutboundRatePerClient(value) {
|
|
669
|
+
wasm.brokerconfig_set_maxOutboundRatePerClient(this.__wbg_ptr, value);
|
|
670
|
+
}
|
|
648
671
|
/**
|
|
649
672
|
* @param {number} value
|
|
650
673
|
*/
|
|
@@ -2342,7 +2365,7 @@ function __wbg_get_imports() {
|
|
|
2342
2365
|
const a = state0.a;
|
|
2343
2366
|
state0.a = 0;
|
|
2344
2367
|
try {
|
|
2345
|
-
return
|
|
2368
|
+
return __wasm_bindgen_func_elem_4240(a, state0.b, arg0, arg1);
|
|
2346
2369
|
} finally {
|
|
2347
2370
|
state0.a = a;
|
|
2348
2371
|
}
|
|
@@ -2372,7 +2395,7 @@ function __wbg_get_imports() {
|
|
|
2372
2395
|
const a = state0.a;
|
|
2373
2396
|
state0.a = 0;
|
|
2374
2397
|
try {
|
|
2375
|
-
return
|
|
2398
|
+
return __wasm_bindgen_func_elem_4240(a, state0.b, arg0, arg1);
|
|
2376
2399
|
} finally {
|
|
2377
2400
|
state0.a = a;
|
|
2378
2401
|
}
|
|
@@ -2449,7 +2472,7 @@ function __wbg_get_imports() {
|
|
|
2449
2472
|
__wbg_send_d31a693c975dea74: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2450
2473
|
getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2));
|
|
2451
2474
|
}, arguments); },
|
|
2452
|
-
|
|
2475
|
+
__wbg_setTimeout_86c59f3a544c7e51: function(arg0, arg1) {
|
|
2453
2476
|
const ret = setTimeout(getObject(arg0), arg1);
|
|
2454
2477
|
return ret;
|
|
2455
2478
|
},
|
|
@@ -2523,33 +2546,33 @@ function __wbg_get_imports() {
|
|
|
2523
2546
|
console.warn(getObject(arg0));
|
|
2524
2547
|
},
|
|
2525
2548
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
2526
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
2527
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
2549
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 425, function: Function { arguments: [], shim_idx: 426, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2550
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2606, __wasm_bindgen_func_elem_2626);
|
|
2528
2551
|
return addHeapObject(ret);
|
|
2529
2552
|
},
|
|
2530
2553
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
2531
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
2532
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
2554
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 444, function: Function { arguments: [Externref], shim_idx: 606, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2555
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2766, __wasm_bindgen_func_elem_4228);
|
|
2533
2556
|
return addHeapObject(ret);
|
|
2534
2557
|
},
|
|
2535
2558
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
2536
2559
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 9, function: Function { arguments: [Externref], shim_idx: 10, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2537
|
-
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_184,
|
|
2560
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_184, __wasm_bindgen_func_elem_1043);
|
|
2538
2561
|
return addHeapObject(ret);
|
|
2539
2562
|
},
|
|
2540
2563
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
2541
2564
|
// 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`.
|
|
2542
|
-
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_184,
|
|
2565
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_184, __wasm_bindgen_func_elem_1043_3);
|
|
2543
2566
|
return addHeapObject(ret);
|
|
2544
2567
|
},
|
|
2545
2568
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
2546
2569
|
// 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`.
|
|
2547
|
-
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_184,
|
|
2570
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_184, __wasm_bindgen_func_elem_1043_4);
|
|
2548
2571
|
return addHeapObject(ret);
|
|
2549
2572
|
},
|
|
2550
2573
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
2551
2574
|
// 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`.
|
|
2552
|
-
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_184,
|
|
2575
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_184, __wasm_bindgen_func_elem_1043_5);
|
|
2553
2576
|
return addHeapObject(ret);
|
|
2554
2577
|
},
|
|
2555
2578
|
__wbindgen_cast_0000000000000007: function(arg0) {
|
|
@@ -2583,30 +2606,30 @@ function __wbg_get_imports() {
|
|
|
2583
2606
|
};
|
|
2584
2607
|
}
|
|
2585
2608
|
|
|
2586
|
-
function
|
|
2587
|
-
wasm.
|
|
2609
|
+
function __wasm_bindgen_func_elem_2626(arg0, arg1) {
|
|
2610
|
+
wasm.__wasm_bindgen_func_elem_2626(arg0, arg1);
|
|
2588
2611
|
}
|
|
2589
2612
|
|
|
2590
|
-
function
|
|
2591
|
-
wasm.
|
|
2613
|
+
function __wasm_bindgen_func_elem_1043(arg0, arg1, arg2) {
|
|
2614
|
+
wasm.__wasm_bindgen_func_elem_1043(arg0, arg1, addHeapObject(arg2));
|
|
2592
2615
|
}
|
|
2593
2616
|
|
|
2594
|
-
function
|
|
2595
|
-
wasm.
|
|
2617
|
+
function __wasm_bindgen_func_elem_1043_3(arg0, arg1, arg2) {
|
|
2618
|
+
wasm.__wasm_bindgen_func_elem_1043_3(arg0, arg1, addHeapObject(arg2));
|
|
2596
2619
|
}
|
|
2597
2620
|
|
|
2598
|
-
function
|
|
2599
|
-
wasm.
|
|
2621
|
+
function __wasm_bindgen_func_elem_1043_4(arg0, arg1, arg2) {
|
|
2622
|
+
wasm.__wasm_bindgen_func_elem_1043_4(arg0, arg1, addHeapObject(arg2));
|
|
2600
2623
|
}
|
|
2601
2624
|
|
|
2602
|
-
function
|
|
2603
|
-
wasm.
|
|
2625
|
+
function __wasm_bindgen_func_elem_1043_5(arg0, arg1, arg2) {
|
|
2626
|
+
wasm.__wasm_bindgen_func_elem_1043_5(arg0, arg1, addHeapObject(arg2));
|
|
2604
2627
|
}
|
|
2605
2628
|
|
|
2606
|
-
function
|
|
2629
|
+
function __wasm_bindgen_func_elem_4228(arg0, arg1, arg2) {
|
|
2607
2630
|
try {
|
|
2608
2631
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2609
|
-
wasm.
|
|
2632
|
+
wasm.__wasm_bindgen_func_elem_4228(retptr, arg0, arg1, addHeapObject(arg2));
|
|
2610
2633
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2611
2634
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2612
2635
|
if (r1) {
|
|
@@ -2617,8 +2640,8 @@ function __wasm_bindgen_func_elem_4195(arg0, arg1, arg2) {
|
|
|
2617
2640
|
}
|
|
2618
2641
|
}
|
|
2619
2642
|
|
|
2620
|
-
function
|
|
2621
|
-
wasm.
|
|
2643
|
+
function __wasm_bindgen_func_elem_4240(arg0, arg1, arg2, arg3) {
|
|
2644
|
+
wasm.__wasm_bindgen_func_elem_4240(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
2622
2645
|
}
|
|
2623
2646
|
|
|
2624
2647
|
|
package/mqtt5_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -0,0 +1,250 @@
|
|
|
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_clearChangeOnlyDeliveryPatterns: (a: number) => void;
|
|
72
|
+
export const brokerconfig_new: () => number;
|
|
73
|
+
export const brokerconfig_set_allowAnonymous: (a: number, b: number) => void;
|
|
74
|
+
export const brokerconfig_set_changeOnlyDeliveryEnabled: (a: number, b: number) => void;
|
|
75
|
+
export const brokerconfig_set_echoSuppressionEnabled: (a: number, b: number) => void;
|
|
76
|
+
export const brokerconfig_set_echoSuppressionPropertyKey: (a: number, b: number, c: number) => void;
|
|
77
|
+
export const brokerconfig_set_maxClients: (a: number, b: number) => void;
|
|
78
|
+
export const brokerconfig_set_maxOutboundRatePerClient: (a: number, b: number) => void;
|
|
79
|
+
export const brokerconfig_set_maxPacketSize: (a: number, b: number) => void;
|
|
80
|
+
export const brokerconfig_set_maximumQos: (a: number, b: number) => void;
|
|
81
|
+
export const brokerconfig_set_retainAvailable: (a: number, b: number) => void;
|
|
82
|
+
export const brokerconfig_set_serverKeepAliveSecs: (a: number, b: number) => void;
|
|
83
|
+
export const brokerconfig_set_sessionExpiryIntervalSecs: (a: number, b: number) => void;
|
|
84
|
+
export const brokerconfig_set_sharedSubscriptionAvailable: (a: number, b: number) => void;
|
|
85
|
+
export const brokerconfig_set_subscriptionIdentifierAvailable: (a: number, b: number) => void;
|
|
86
|
+
export const brokerconfig_set_topicAliasMaximum: (a: number, b: number) => void;
|
|
87
|
+
export const brokerconfig_set_wildcardSubscriptionAvailable: (a: number, b: number) => void;
|
|
88
|
+
export const codecregistry_getDefault: (a: number, b: number) => void;
|
|
89
|
+
export const codecregistry_hasCodec: (a: number, b: number, c: number) => number;
|
|
90
|
+
export const codecregistry_new: () => number;
|
|
91
|
+
export const codecregistry_registerDeflate: (a: number, b: number) => void;
|
|
92
|
+
export const codecregistry_registerGzip: (a: number, b: number) => void;
|
|
93
|
+
export const codecregistry_setDefault: (a: number, b: number, c: number, d: number) => void;
|
|
94
|
+
export const connectoptions_addBackupUrl: (a: number, b: number, c: number) => void;
|
|
95
|
+
export const connectoptions_addUserProperty: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
96
|
+
export const connectoptions_authenticationMethod: (a: number, b: number) => void;
|
|
97
|
+
export const connectoptions_cleanStart: (a: number) => number;
|
|
98
|
+
export const connectoptions_clearBackupUrls: (a: number) => void;
|
|
99
|
+
export const connectoptions_clearCodecRegistry: (a: number) => void;
|
|
100
|
+
export const connectoptions_clearUserProperties: (a: number) => void;
|
|
101
|
+
export const connectoptions_clearWill: (a: number) => void;
|
|
102
|
+
export const connectoptions_getBackupUrls: (a: number, b: number) => void;
|
|
103
|
+
export const connectoptions_keepAlive: (a: number) => number;
|
|
104
|
+
export const connectoptions_maximumPacketSize: (a: number) => number;
|
|
105
|
+
export const connectoptions_new: () => number;
|
|
106
|
+
export const connectoptions_protocolVersion: (a: number) => number;
|
|
107
|
+
export const connectoptions_receiveMaximum: (a: number) => number;
|
|
108
|
+
export const connectoptions_requestProblemInformation: (a: number) => number;
|
|
109
|
+
export const connectoptions_requestResponseInformation: (a: number) => number;
|
|
110
|
+
export const connectoptions_sessionExpiryInterval: (a: number) => number;
|
|
111
|
+
export const connectoptions_setCodecRegistry: (a: number, b: number) => void;
|
|
112
|
+
export const connectoptions_setWill: (a: number, b: number) => void;
|
|
113
|
+
export const connectoptions_set_authenticationData: (a: number, b: number, c: number) => void;
|
|
114
|
+
export const connectoptions_set_authenticationMethod: (a: number, b: number, c: number) => void;
|
|
115
|
+
export const connectoptions_set_cleanStart: (a: number, b: number) => void;
|
|
116
|
+
export const connectoptions_set_keepAlive: (a: number, b: number) => void;
|
|
117
|
+
export const connectoptions_set_maximumPacketSize: (a: number, b: number) => void;
|
|
118
|
+
export const connectoptions_set_password: (a: number, b: number, c: number) => void;
|
|
119
|
+
export const connectoptions_set_protocolVersion: (a: number, b: number) => void;
|
|
120
|
+
export const connectoptions_set_receiveMaximum: (a: number, b: number) => void;
|
|
121
|
+
export const connectoptions_set_requestProblemInformation: (a: number, b: number) => void;
|
|
122
|
+
export const connectoptions_set_requestResponseInformation: (a: number, b: number) => void;
|
|
123
|
+
export const connectoptions_set_sessionExpiryInterval: (a: number, b: number) => void;
|
|
124
|
+
export const connectoptions_set_topicAliasMaximum: (a: number, b: number) => void;
|
|
125
|
+
export const connectoptions_set_username: (a: number, b: number, c: number) => void;
|
|
126
|
+
export const connectoptions_topicAliasMaximum: (a: number) => number;
|
|
127
|
+
export const connectoptions_username: (a: number, b: number) => void;
|
|
128
|
+
export const createDeflateCodec: (a: number, b: number) => number;
|
|
129
|
+
export const deflatecodec_new: () => number;
|
|
130
|
+
export const deflatecodec_withLevel: (a: number, b: number) => number;
|
|
131
|
+
export const deflatecodec_withMaxDecompressedSize: (a: number, b: number) => number;
|
|
132
|
+
export const deflatecodec_withMinSize: (a: number, b: number) => number;
|
|
133
|
+
export const messageproperties_contentType: (a: number, b: number) => void;
|
|
134
|
+
export const messageproperties_correlationData: (a: number, b: number) => void;
|
|
135
|
+
export const messageproperties_getUserProperties: (a: number) => number;
|
|
136
|
+
export const messageproperties_messageExpiryInterval: (a: number) => number;
|
|
137
|
+
export const messageproperties_payloadFormatIndicator: (a: number) => number;
|
|
138
|
+
export const messageproperties_responseTopic: (a: number, b: number) => void;
|
|
139
|
+
export const messageproperties_subscriptionIdentifiers: (a: number, b: number) => void;
|
|
140
|
+
export const mqttclient_connect: (a: number, b: number, c: number) => number;
|
|
141
|
+
export const mqttclient_connectBroadcastChannel: (a: number, b: number, c: number) => number;
|
|
142
|
+
export const mqttclient_connectMessagePort: (a: number, b: number) => number;
|
|
143
|
+
export const mqttclient_connectMessagePortWithOptions: (a: number, b: number, c: number) => number;
|
|
144
|
+
export const mqttclient_connectWithOptions: (a: number, b: number, c: number, d: number) => number;
|
|
145
|
+
export const mqttclient_destroy: (a: number) => void;
|
|
146
|
+
export const mqttclient_disconnect: (a: number) => number;
|
|
147
|
+
export const mqttclient_enableAutoReconnect: (a: number, b: number) => void;
|
|
148
|
+
export const mqttclient_isBrowserOnline: (a: number) => number;
|
|
149
|
+
export const mqttclient_isConnected: (a: number) => number;
|
|
150
|
+
export const mqttclient_isReconnecting: (a: number) => number;
|
|
151
|
+
export const mqttclient_new: (a: number, b: number) => number;
|
|
152
|
+
export const mqttclient_onAuthChallenge: (a: number, b: number) => void;
|
|
153
|
+
export const mqttclient_onConnect: (a: number, b: number) => void;
|
|
154
|
+
export const mqttclient_onConnectivityChange: (a: number, b: number) => void;
|
|
155
|
+
export const mqttclient_onDisconnect: (a: number, b: number) => void;
|
|
156
|
+
export const mqttclient_onError: (a: number, b: number) => void;
|
|
157
|
+
export const mqttclient_onReconnectFailed: (a: number, b: number) => void;
|
|
158
|
+
export const mqttclient_onReconnecting: (a: number, b: number) => void;
|
|
159
|
+
export const mqttclient_publish: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
160
|
+
export const mqttclient_publishQos1: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
161
|
+
export const mqttclient_publishQos2: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
162
|
+
export const mqttclient_publishWithOptions: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
163
|
+
export const mqttclient_respondAuth: (a: number, b: number, c: number, d: number) => void;
|
|
164
|
+
export const mqttclient_setReconnectOptions: (a: number, b: number) => void;
|
|
165
|
+
export const mqttclient_subscribe: (a: number, b: number, c: number) => number;
|
|
166
|
+
export const mqttclient_subscribeWithCallback: (a: number, b: number, c: number, d: number) => number;
|
|
167
|
+
export const mqttclient_subscribeWithOptions: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
168
|
+
export const mqttclient_unsubscribe: (a: number, b: number, c: number) => number;
|
|
169
|
+
export const publishoptions_addUserProperty: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
170
|
+
export const publishoptions_clearUserProperties: (a: number) => void;
|
|
171
|
+
export const publishoptions_contentType: (a: number, b: number) => void;
|
|
172
|
+
export const publishoptions_messageExpiryInterval: (a: number) => number;
|
|
173
|
+
export const publishoptions_new: () => number;
|
|
174
|
+
export const publishoptions_payloadFormatIndicator: (a: number) => number;
|
|
175
|
+
export const publishoptions_qos: (a: number) => number;
|
|
176
|
+
export const publishoptions_responseTopic: (a: number, b: number) => void;
|
|
177
|
+
export const publishoptions_retain: (a: number) => number;
|
|
178
|
+
export const publishoptions_set_contentType: (a: number, b: number, c: number) => void;
|
|
179
|
+
export const publishoptions_set_correlationData: (a: number, b: number, c: number) => void;
|
|
180
|
+
export const publishoptions_set_messageExpiryInterval: (a: number, b: number) => void;
|
|
181
|
+
export const publishoptions_set_payloadFormatIndicator: (a: number, b: number) => void;
|
|
182
|
+
export const publishoptions_set_qos: (a: number, b: number) => void;
|
|
183
|
+
export const publishoptions_set_responseTopic: (a: number, b: number, c: number) => void;
|
|
184
|
+
export const publishoptions_set_retain: (a: number, b: number) => void;
|
|
185
|
+
export const publishoptions_set_topicAlias: (a: number, b: number) => void;
|
|
186
|
+
export const publishoptions_topicAlias: (a: number) => number;
|
|
187
|
+
export const reconnectoptions_backoffFactor: (a: number) => number;
|
|
188
|
+
export const reconnectoptions_disabled: () => number;
|
|
189
|
+
export const reconnectoptions_enabled: (a: number) => number;
|
|
190
|
+
export const reconnectoptions_initialDelayMs: (a: number) => number;
|
|
191
|
+
export const reconnectoptions_maxAttempts: (a: number) => number;
|
|
192
|
+
export const reconnectoptions_maxDelayMs: (a: number) => number;
|
|
193
|
+
export const reconnectoptions_new: () => number;
|
|
194
|
+
export const reconnectoptions_set_backoffFactor: (a: number, b: number) => void;
|
|
195
|
+
export const reconnectoptions_set_enabled: (a: number, b: number) => void;
|
|
196
|
+
export const reconnectoptions_set_initialDelayMs: (a: number, b: number) => void;
|
|
197
|
+
export const reconnectoptions_set_maxAttempts: (a: number, b: number) => void;
|
|
198
|
+
export const reconnectoptions_set_maxDelayMs: (a: number, b: number) => void;
|
|
199
|
+
export const subscribeoptions_new: () => number;
|
|
200
|
+
export const subscribeoptions_noLocal: (a: number) => number;
|
|
201
|
+
export const subscribeoptions_qos: (a: number) => number;
|
|
202
|
+
export const subscribeoptions_retainAsPublished: (a: number) => number;
|
|
203
|
+
export const subscribeoptions_retainHandling: (a: number) => number;
|
|
204
|
+
export const subscribeoptions_set_noLocal: (a: number, b: number) => void;
|
|
205
|
+
export const subscribeoptions_set_qos: (a: number, b: number) => void;
|
|
206
|
+
export const subscribeoptions_set_retainAsPublished: (a: number, b: number) => void;
|
|
207
|
+
export const subscribeoptions_set_retainHandling: (a: number, b: number) => void;
|
|
208
|
+
export const subscribeoptions_set_subscriptionIdentifier: (a: number, b: number) => void;
|
|
209
|
+
export const subscribeoptions_subscriptionIdentifier: (a: number) => number;
|
|
210
|
+
export const topicmapping_new: (a: number, b: number, c: number) => number;
|
|
211
|
+
export const topicmapping_set_localPrefix: (a: number, b: number, c: number) => void;
|
|
212
|
+
export const topicmapping_set_qos: (a: number, b: number) => void;
|
|
213
|
+
export const topicmapping_set_remotePrefix: (a: number, b: number, c: number) => void;
|
|
214
|
+
export const willmessage_contentType: (a: number, b: number) => void;
|
|
215
|
+
export const willmessage_messageExpiryInterval: (a: number) => number;
|
|
216
|
+
export const willmessage_new: (a: number, b: number, c: number, d: number) => number;
|
|
217
|
+
export const willmessage_qos: (a: number) => number;
|
|
218
|
+
export const willmessage_responseTopic: (a: number, b: number) => void;
|
|
219
|
+
export const willmessage_retain: (a: number) => number;
|
|
220
|
+
export const willmessage_set_contentType: (a: number, b: number, c: number) => void;
|
|
221
|
+
export const willmessage_set_messageExpiryInterval: (a: number, b: number) => void;
|
|
222
|
+
export const willmessage_set_qos: (a: number, b: number) => void;
|
|
223
|
+
export const willmessage_set_responseTopic: (a: number, b: number, c: number) => void;
|
|
224
|
+
export const willmessage_set_retain: (a: number, b: number) => void;
|
|
225
|
+
export const willmessage_set_topic: (a: number, b: number, c: number) => void;
|
|
226
|
+
export const willmessage_set_willDelayInterval: (a: number, b: number) => void;
|
|
227
|
+
export const willmessage_topic: (a: number, b: number) => void;
|
|
228
|
+
export const willmessage_willDelayInterval: (a: number) => number;
|
|
229
|
+
export const createCodecRegistry: () => number;
|
|
230
|
+
export const gzipcodec_new: () => number;
|
|
231
|
+
export const createGzipCodec: (a: number, b: number) => number;
|
|
232
|
+
export const gzipcodec_withMinSize: (a: number, b: number) => number;
|
|
233
|
+
export const gzipcodec_withMaxDecompressedSize: (a: number, b: number) => number;
|
|
234
|
+
export const __wbg_gzipcodec_free: (a: number, b: number) => void;
|
|
235
|
+
export const gzipcodec_withLevel: (a: number, b: number) => number;
|
|
236
|
+
export const __wasm_bindgen_func_elem_2606: (a: number, b: number) => void;
|
|
237
|
+
export const __wasm_bindgen_func_elem_2766: (a: number, b: number) => void;
|
|
238
|
+
export const __wasm_bindgen_func_elem_184: (a: number, b: number) => void;
|
|
239
|
+
export const __wasm_bindgen_func_elem_4228: (a: number, b: number, c: number, d: number) => void;
|
|
240
|
+
export const __wasm_bindgen_func_elem_4240: (a: number, b: number, c: number, d: number) => void;
|
|
241
|
+
export const __wasm_bindgen_func_elem_1043: (a: number, b: number, c: number) => void;
|
|
242
|
+
export const __wasm_bindgen_func_elem_1043_3: (a: number, b: number, c: number) => void;
|
|
243
|
+
export const __wasm_bindgen_func_elem_1043_4: (a: number, b: number, c: number) => void;
|
|
244
|
+
export const __wasm_bindgen_func_elem_1043_5: (a: number, b: number, c: number) => void;
|
|
245
|
+
export const __wasm_bindgen_func_elem_2626: (a: number, b: number) => void;
|
|
246
|
+
export const __wbindgen_export: (a: number, b: number) => number;
|
|
247
|
+
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
248
|
+
export const __wbindgen_export3: (a: number) => void;
|
|
249
|
+
export const __wbindgen_export4: (a: number, b: number, c: number) => void;
|
|
250
|
+
export const __wbindgen_add_to_stack_pointer: (a: number) => number;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mqtt5-wasm",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.1.0",
|
|
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,10 +11,14 @@
|
|
|
11
11
|
"files": [
|
|
12
12
|
"mqtt5_wasm_bg.wasm",
|
|
13
13
|
"mqtt5_wasm.js",
|
|
14
|
-
"mqtt5_wasm.d.ts"
|
|
14
|
+
"mqtt5_wasm.d.ts",
|
|
15
|
+
"mqtt5_wasm_bg.wasm.d.ts"
|
|
15
16
|
],
|
|
16
17
|
"main": "mqtt5_wasm.js",
|
|
17
18
|
"types": "mqtt5_wasm.d.ts",
|
|
19
|
+
"sideEffects": [
|
|
20
|
+
"./mqtt5_wasm.js"
|
|
21
|
+
],
|
|
18
22
|
"keywords": [
|
|
19
23
|
"mqtt",
|
|
20
24
|
"wasm",
|