mqtt5-wasm 1.3.0 → 1.3.3
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 -3
- package/mqtt5_wasm.d.ts +10 -12
- package/mqtt5_wasm.js +174 -185
- package/mqtt5_wasm_bg.wasm +0 -0
- package/package.json +2 -6
- package/mqtt5_wasm_bg.wasm.d.ts +0 -252
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
|
|
package/mqtt5_wasm.d.ts
CHANGED
|
@@ -644,26 +644,24 @@ 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_withMinSize: (a: number, b: number) => number;
|
|
648
|
-
readonly gzipcodec_withMaxDecompressedSize: (a: number, b: number) => number;
|
|
649
647
|
readonly gzipcodec_new: () => number;
|
|
650
648
|
readonly createGzipCodec: (a: number, b: number) => number;
|
|
651
649
|
readonly __wbg_gzipcodec_free: (a: number, b: number) => void;
|
|
652
650
|
readonly gzipcodec_withLevel: (a: number, b: number) => number;
|
|
653
|
-
readonly
|
|
654
|
-
readonly
|
|
655
|
-
readonly
|
|
656
|
-
readonly
|
|
657
|
-
readonly
|
|
658
|
-
readonly
|
|
659
|
-
readonly
|
|
660
|
-
readonly
|
|
661
|
-
readonly
|
|
662
|
-
readonly __wasm_bindgen_func_elem_2630: (a: number, b: number) => void;
|
|
651
|
+
readonly gzipcodec_withMaxDecompressedSize: (a: number, b: number) => number;
|
|
652
|
+
readonly gzipcodec_withMinSize: (a: number, b: number) => number;
|
|
653
|
+
readonly __wasm_bindgen_func_elem_4192: (a: number, b: number, c: number, d: number) => void;
|
|
654
|
+
readonly __wasm_bindgen_func_elem_4202: (a: number, b: number, c: number, d: number) => void;
|
|
655
|
+
readonly __wasm_bindgen_func_elem_1072: (a: number, b: number, c: number) => void;
|
|
656
|
+
readonly __wasm_bindgen_func_elem_1072_2: (a: number, b: number, c: number) => void;
|
|
657
|
+
readonly __wasm_bindgen_func_elem_1072_3: (a: number, b: number, c: number) => void;
|
|
658
|
+
readonly __wasm_bindgen_func_elem_1072_4: (a: number, b: number, c: number) => void;
|
|
659
|
+
readonly __wasm_bindgen_func_elem_2637: (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;
|
|
666
663
|
readonly __wbindgen_export4: (a: number, b: number, c: number) => void;
|
|
664
|
+
readonly __wbindgen_export5: (a: number, b: number) => void;
|
|
667
665
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
668
666
|
}
|
|
669
667
|
|
package/mqtt5_wasm.js
CHANGED
|
@@ -26,7 +26,7 @@ export class BridgeConfig {
|
|
|
26
26
|
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
27
27
|
const len0 = WASM_VECTOR_LEN;
|
|
28
28
|
const ret = wasm.bridgeconfig_new(ptr0, len0);
|
|
29
|
-
this.__wbg_ptr = ret
|
|
29
|
+
this.__wbg_ptr = ret;
|
|
30
30
|
BridgeConfigFinalization.register(this, this.__wbg_ptr, this);
|
|
31
31
|
return this;
|
|
32
32
|
}
|
|
@@ -116,7 +116,6 @@ export const BridgeDirection = Object.freeze({
|
|
|
116
116
|
|
|
117
117
|
export class Broker {
|
|
118
118
|
static __wrap(ptr) {
|
|
119
|
-
ptr = ptr >>> 0;
|
|
120
119
|
const obj = Object.create(Broker.prototype);
|
|
121
120
|
obj.__wbg_ptr = ptr;
|
|
122
121
|
BrokerFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -415,7 +414,7 @@ export class Broker {
|
|
|
415
414
|
if (r2) {
|
|
416
415
|
throw takeObject(r1);
|
|
417
416
|
}
|
|
418
|
-
this.__wbg_ptr = r0
|
|
417
|
+
this.__wbg_ptr = r0;
|
|
419
418
|
BrokerFinalization.register(this, this.__wbg_ptr, this);
|
|
420
419
|
return this;
|
|
421
420
|
} finally {
|
|
@@ -637,7 +636,7 @@ export class BrokerConfig {
|
|
|
637
636
|
}
|
|
638
637
|
constructor() {
|
|
639
638
|
const ret = wasm.brokerconfig_new();
|
|
640
|
-
this.__wbg_ptr = ret
|
|
639
|
+
this.__wbg_ptr = ret;
|
|
641
640
|
BrokerConfigFinalization.register(this, this.__wbg_ptr, this);
|
|
642
641
|
return this;
|
|
643
642
|
}
|
|
@@ -701,7 +700,7 @@ export class BrokerConfig {
|
|
|
701
700
|
* @param {number | null} [value]
|
|
702
701
|
*/
|
|
703
702
|
set serverKeepAliveSecs(value) {
|
|
704
|
-
wasm.brokerconfig_set_serverKeepAliveSecs(this.__wbg_ptr, isLikeNone(value) ?
|
|
703
|
+
wasm.brokerconfig_set_serverKeepAliveSecs(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
|
|
705
704
|
}
|
|
706
705
|
/**
|
|
707
706
|
* @param {number} value
|
|
@@ -738,7 +737,6 @@ if (Symbol.dispose) BrokerConfig.prototype[Symbol.dispose] = BrokerConfig.protot
|
|
|
738
737
|
|
|
739
738
|
export class CodecRegistry {
|
|
740
739
|
static __wrap(ptr) {
|
|
741
|
-
ptr = ptr >>> 0;
|
|
742
740
|
const obj = Object.create(CodecRegistry.prototype);
|
|
743
741
|
obj.__wbg_ptr = ptr;
|
|
744
742
|
CodecRegistryFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -785,7 +783,7 @@ export class CodecRegistry {
|
|
|
785
783
|
}
|
|
786
784
|
constructor() {
|
|
787
785
|
const ret = wasm.codecregistry_new();
|
|
788
|
-
this.__wbg_ptr = ret
|
|
786
|
+
this.__wbg_ptr = ret;
|
|
789
787
|
CodecRegistryFinalization.register(this, this.__wbg_ptr, this);
|
|
790
788
|
return this;
|
|
791
789
|
}
|
|
@@ -924,11 +922,11 @@ export class ConnectOptions {
|
|
|
924
922
|
*/
|
|
925
923
|
get maximumPacketSize() {
|
|
926
924
|
const ret = wasm.connectoptions_maximumPacketSize(this.__wbg_ptr);
|
|
927
|
-
return ret ===
|
|
925
|
+
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
928
926
|
}
|
|
929
927
|
constructor() {
|
|
930
928
|
const ret = wasm.connectoptions_new();
|
|
931
|
-
this.__wbg_ptr = ret
|
|
929
|
+
this.__wbg_ptr = ret;
|
|
932
930
|
ConnectOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
933
931
|
return this;
|
|
934
932
|
}
|
|
@@ -965,7 +963,7 @@ export class ConnectOptions {
|
|
|
965
963
|
*/
|
|
966
964
|
get sessionExpiryInterval() {
|
|
967
965
|
const ret = wasm.connectoptions_sessionExpiryInterval(this.__wbg_ptr);
|
|
968
|
-
return ret ===
|
|
966
|
+
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
969
967
|
}
|
|
970
968
|
/**
|
|
971
969
|
* @param {CodecRegistry} registry
|
|
@@ -1015,7 +1013,7 @@ export class ConnectOptions {
|
|
|
1015
1013
|
* @param {number | null} [value]
|
|
1016
1014
|
*/
|
|
1017
1015
|
set maximumPacketSize(value) {
|
|
1018
|
-
wasm.connectoptions_set_maximumPacketSize(this.__wbg_ptr, isLikeNone(value) ?
|
|
1016
|
+
wasm.connectoptions_set_maximumPacketSize(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
|
|
1019
1017
|
}
|
|
1020
1018
|
/**
|
|
1021
1019
|
* @param {Uint8Array} value
|
|
@@ -1053,7 +1051,7 @@ export class ConnectOptions {
|
|
|
1053
1051
|
* @param {number | null} [value]
|
|
1054
1052
|
*/
|
|
1055
1053
|
set sessionExpiryInterval(value) {
|
|
1056
|
-
wasm.connectoptions_set_sessionExpiryInterval(this.__wbg_ptr, isLikeNone(value) ?
|
|
1054
|
+
wasm.connectoptions_set_sessionExpiryInterval(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
|
|
1057
1055
|
}
|
|
1058
1056
|
/**
|
|
1059
1057
|
* @param {number | null} [value]
|
|
@@ -1100,7 +1098,6 @@ if (Symbol.dispose) ConnectOptions.prototype[Symbol.dispose] = ConnectOptions.pr
|
|
|
1100
1098
|
|
|
1101
1099
|
export class DeflateCodec {
|
|
1102
1100
|
static __wrap(ptr) {
|
|
1103
|
-
ptr = ptr >>> 0;
|
|
1104
1101
|
const obj = Object.create(DeflateCodec.prototype);
|
|
1105
1102
|
obj.__wbg_ptr = ptr;
|
|
1106
1103
|
DeflateCodecFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -1118,7 +1115,7 @@ export class DeflateCodec {
|
|
|
1118
1115
|
}
|
|
1119
1116
|
constructor() {
|
|
1120
1117
|
const ret = wasm.deflatecodec_new();
|
|
1121
|
-
this.__wbg_ptr = ret
|
|
1118
|
+
this.__wbg_ptr = ret;
|
|
1122
1119
|
DeflateCodecFinalization.register(this, this.__wbg_ptr, this);
|
|
1123
1120
|
return this;
|
|
1124
1121
|
}
|
|
@@ -1154,7 +1151,6 @@ if (Symbol.dispose) DeflateCodec.prototype[Symbol.dispose] = DeflateCodec.protot
|
|
|
1154
1151
|
|
|
1155
1152
|
export class GzipCodec {
|
|
1156
1153
|
static __wrap(ptr) {
|
|
1157
|
-
ptr = ptr >>> 0;
|
|
1158
1154
|
const obj = Object.create(GzipCodec.prototype);
|
|
1159
1155
|
obj.__wbg_ptr = ptr;
|
|
1160
1156
|
GzipCodecFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -1172,7 +1168,7 @@ export class GzipCodec {
|
|
|
1172
1168
|
}
|
|
1173
1169
|
constructor() {
|
|
1174
1170
|
const ret = wasm.gzipcodec_new();
|
|
1175
|
-
this.__wbg_ptr = ret
|
|
1171
|
+
this.__wbg_ptr = ret;
|
|
1176
1172
|
GzipCodecFinalization.register(this, this.__wbg_ptr, this);
|
|
1177
1173
|
return this;
|
|
1178
1174
|
}
|
|
@@ -1208,7 +1204,6 @@ if (Symbol.dispose) GzipCodec.prototype[Symbol.dispose] = GzipCodec.prototype.fr
|
|
|
1208
1204
|
|
|
1209
1205
|
export class MessageProperties {
|
|
1210
1206
|
static __wrap(ptr) {
|
|
1211
|
-
ptr = ptr >>> 0;
|
|
1212
1207
|
const obj = Object.create(MessageProperties.prototype);
|
|
1213
1208
|
obj.__wbg_ptr = ptr;
|
|
1214
1209
|
MessagePropertiesFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -1274,7 +1269,7 @@ export class MessageProperties {
|
|
|
1274
1269
|
*/
|
|
1275
1270
|
get messageExpiryInterval() {
|
|
1276
1271
|
const ret = wasm.messageproperties_messageExpiryInterval(this.__wbg_ptr);
|
|
1277
|
-
return ret ===
|
|
1272
|
+
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
1278
1273
|
}
|
|
1279
1274
|
/**
|
|
1280
1275
|
* @returns {boolean | undefined}
|
|
@@ -1438,7 +1433,7 @@ export class MqttClient {
|
|
|
1438
1433
|
const ptr0 = passStringToWasm0(clientId, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1439
1434
|
const len0 = WASM_VECTOR_LEN;
|
|
1440
1435
|
const ret = wasm.mqttclient_new(ptr0, len0);
|
|
1441
|
-
this.__wbg_ptr = ret
|
|
1436
|
+
this.__wbg_ptr = ret;
|
|
1442
1437
|
MqttClientFinalization.register(this, this.__wbg_ptr, this);
|
|
1443
1438
|
return this;
|
|
1444
1439
|
}
|
|
@@ -1679,11 +1674,11 @@ export class PublishOptions {
|
|
|
1679
1674
|
*/
|
|
1680
1675
|
get messageExpiryInterval() {
|
|
1681
1676
|
const ret = wasm.publishoptions_messageExpiryInterval(this.__wbg_ptr);
|
|
1682
|
-
return ret ===
|
|
1677
|
+
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
1683
1678
|
}
|
|
1684
1679
|
constructor() {
|
|
1685
1680
|
const ret = wasm.publishoptions_new();
|
|
1686
|
-
this.__wbg_ptr = ret
|
|
1681
|
+
this.__wbg_ptr = ret;
|
|
1687
1682
|
PublishOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
1688
1683
|
return this;
|
|
1689
1684
|
}
|
|
@@ -1747,7 +1742,7 @@ export class PublishOptions {
|
|
|
1747
1742
|
* @param {number | null} [value]
|
|
1748
1743
|
*/
|
|
1749
1744
|
set messageExpiryInterval(value) {
|
|
1750
|
-
wasm.publishoptions_set_messageExpiryInterval(this.__wbg_ptr, isLikeNone(value) ?
|
|
1745
|
+
wasm.publishoptions_set_messageExpiryInterval(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
|
|
1751
1746
|
}
|
|
1752
1747
|
/**
|
|
1753
1748
|
* @param {boolean | null} [value]
|
|
@@ -1793,7 +1788,6 @@ if (Symbol.dispose) PublishOptions.prototype[Symbol.dispose] = PublishOptions.pr
|
|
|
1793
1788
|
|
|
1794
1789
|
export class ReconnectOptions {
|
|
1795
1790
|
static __wrap(ptr) {
|
|
1796
|
-
ptr = ptr >>> 0;
|
|
1797
1791
|
const obj = Object.create(ReconnectOptions.prototype);
|
|
1798
1792
|
obj.__wbg_ptr = ptr;
|
|
1799
1793
|
ReconnectOptionsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -1842,7 +1836,7 @@ export class ReconnectOptions {
|
|
|
1842
1836
|
*/
|
|
1843
1837
|
get maxAttempts() {
|
|
1844
1838
|
const ret = wasm.reconnectoptions_maxAttempts(this.__wbg_ptr);
|
|
1845
|
-
return ret ===
|
|
1839
|
+
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
1846
1840
|
}
|
|
1847
1841
|
/**
|
|
1848
1842
|
* @returns {number}
|
|
@@ -1853,7 +1847,7 @@ export class ReconnectOptions {
|
|
|
1853
1847
|
}
|
|
1854
1848
|
constructor() {
|
|
1855
1849
|
const ret = wasm.reconnectoptions_new();
|
|
1856
|
-
this.__wbg_ptr = ret
|
|
1850
|
+
this.__wbg_ptr = ret;
|
|
1857
1851
|
ReconnectOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
1858
1852
|
return this;
|
|
1859
1853
|
}
|
|
@@ -1879,7 +1873,7 @@ export class ReconnectOptions {
|
|
|
1879
1873
|
* @param {number | null} [value]
|
|
1880
1874
|
*/
|
|
1881
1875
|
set maxAttempts(value) {
|
|
1882
|
-
wasm.reconnectoptions_set_maxAttempts(this.__wbg_ptr, isLikeNone(value) ?
|
|
1876
|
+
wasm.reconnectoptions_set_maxAttempts(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
|
|
1883
1877
|
}
|
|
1884
1878
|
/**
|
|
1885
1879
|
* @param {number} value
|
|
@@ -1903,7 +1897,7 @@ export class SubscribeOptions {
|
|
|
1903
1897
|
}
|
|
1904
1898
|
constructor() {
|
|
1905
1899
|
const ret = wasm.subscribeoptions_new();
|
|
1906
|
-
this.__wbg_ptr = ret
|
|
1900
|
+
this.__wbg_ptr = ret;
|
|
1907
1901
|
SubscribeOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
1908
1902
|
return this;
|
|
1909
1903
|
}
|
|
@@ -1963,14 +1957,14 @@ export class SubscribeOptions {
|
|
|
1963
1957
|
* @param {number | null} [value]
|
|
1964
1958
|
*/
|
|
1965
1959
|
set subscriptionIdentifier(value) {
|
|
1966
|
-
wasm.subscribeoptions_set_subscriptionIdentifier(this.__wbg_ptr, isLikeNone(value) ?
|
|
1960
|
+
wasm.subscribeoptions_set_subscriptionIdentifier(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
|
|
1967
1961
|
}
|
|
1968
1962
|
/**
|
|
1969
1963
|
* @returns {number | undefined}
|
|
1970
1964
|
*/
|
|
1971
1965
|
get subscriptionIdentifier() {
|
|
1972
1966
|
const ret = wasm.subscribeoptions_subscriptionIdentifier(this.__wbg_ptr);
|
|
1973
|
-
return ret ===
|
|
1967
|
+
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
1974
1968
|
}
|
|
1975
1969
|
}
|
|
1976
1970
|
if (Symbol.dispose) SubscribeOptions.prototype[Symbol.dispose] = SubscribeOptions.prototype.free;
|
|
@@ -1994,7 +1988,7 @@ export class TopicMapping {
|
|
|
1994
1988
|
const ptr0 = passStringToWasm0(pattern, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1995
1989
|
const len0 = WASM_VECTOR_LEN;
|
|
1996
1990
|
const ret = wasm.topicmapping_new(ptr0, len0, direction);
|
|
1997
|
-
this.__wbg_ptr = ret
|
|
1991
|
+
this.__wbg_ptr = ret;
|
|
1998
1992
|
TopicMappingFinalization.register(this, this.__wbg_ptr, this);
|
|
1999
1993
|
return this;
|
|
2000
1994
|
}
|
|
@@ -2058,7 +2052,7 @@ export class WillMessage {
|
|
|
2058
2052
|
*/
|
|
2059
2053
|
get messageExpiryInterval() {
|
|
2060
2054
|
const ret = wasm.willmessage_messageExpiryInterval(this.__wbg_ptr);
|
|
2061
|
-
return ret ===
|
|
2055
|
+
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
2062
2056
|
}
|
|
2063
2057
|
/**
|
|
2064
2058
|
* @param {string} topic
|
|
@@ -2070,7 +2064,7 @@ export class WillMessage {
|
|
|
2070
2064
|
const ptr1 = passArray8ToWasm0(payload, wasm.__wbindgen_export);
|
|
2071
2065
|
const len1 = WASM_VECTOR_LEN;
|
|
2072
2066
|
const ret = wasm.willmessage_new(ptr0, len0, ptr1, len1);
|
|
2073
|
-
this.__wbg_ptr = ret
|
|
2067
|
+
this.__wbg_ptr = ret;
|
|
2074
2068
|
WillMessageFinalization.register(this, this.__wbg_ptr, this);
|
|
2075
2069
|
return this;
|
|
2076
2070
|
}
|
|
@@ -2119,7 +2113,7 @@ export class WillMessage {
|
|
|
2119
2113
|
* @param {number | null} [value]
|
|
2120
2114
|
*/
|
|
2121
2115
|
set messageExpiryInterval(value) {
|
|
2122
|
-
wasm.willmessage_set_messageExpiryInterval(this.__wbg_ptr, isLikeNone(value) ?
|
|
2116
|
+
wasm.willmessage_set_messageExpiryInterval(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
|
|
2123
2117
|
}
|
|
2124
2118
|
/**
|
|
2125
2119
|
* @param {number} value
|
|
@@ -2153,7 +2147,7 @@ export class WillMessage {
|
|
|
2153
2147
|
* @param {number | null} [value]
|
|
2154
2148
|
*/
|
|
2155
2149
|
set willDelayInterval(value) {
|
|
2156
|
-
wasm.willmessage_set_willDelayInterval(this.__wbg_ptr, isLikeNone(value) ?
|
|
2150
|
+
wasm.willmessage_set_willDelayInterval(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
|
|
2157
2151
|
}
|
|
2158
2152
|
/**
|
|
2159
2153
|
* @returns {string}
|
|
@@ -2179,7 +2173,7 @@ export class WillMessage {
|
|
|
2179
2173
|
*/
|
|
2180
2174
|
get willDelayInterval() {
|
|
2181
2175
|
const ret = wasm.willmessage_willDelayInterval(this.__wbg_ptr);
|
|
2182
|
-
return ret ===
|
|
2176
|
+
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
2183
2177
|
}
|
|
2184
2178
|
}
|
|
2185
2179
|
if (Symbol.dispose) WillMessage.prototype[Symbol.dispose] = WillMessage.prototype.free;
|
|
@@ -2198,7 +2192,7 @@ export function createCodecRegistry() {
|
|
|
2198
2192
|
* @returns {DeflateCodec}
|
|
2199
2193
|
*/
|
|
2200
2194
|
export function createDeflateCodec(level, minSize) {
|
|
2201
|
-
const ret = wasm.createDeflateCodec(isLikeNone(level) ? 0xFFFFFF : level, isLikeNone(minSize) ?
|
|
2195
|
+
const ret = wasm.createDeflateCodec(isLikeNone(level) ? 0xFFFFFF : level, isLikeNone(minSize) ? Number.MAX_SAFE_INTEGER : (minSize) >>> 0);
|
|
2202
2196
|
return DeflateCodec.__wrap(ret);
|
|
2203
2197
|
}
|
|
2204
2198
|
|
|
@@ -2208,84 +2202,83 @@ export function createDeflateCodec(level, minSize) {
|
|
|
2208
2202
|
* @returns {GzipCodec}
|
|
2209
2203
|
*/
|
|
2210
2204
|
export function createGzipCodec(level, minSize) {
|
|
2211
|
-
const ret = wasm.createGzipCodec(isLikeNone(level) ? 0xFFFFFF : level, isLikeNone(minSize) ?
|
|
2205
|
+
const ret = wasm.createGzipCodec(isLikeNone(level) ? 0xFFFFFF : level, isLikeNone(minSize) ? Number.MAX_SAFE_INTEGER : (minSize) >>> 0);
|
|
2212
2206
|
return GzipCodec.__wrap(ret);
|
|
2213
2207
|
}
|
|
2214
|
-
|
|
2215
2208
|
function __wbg_get_imports() {
|
|
2216
2209
|
const import0 = {
|
|
2217
2210
|
__proto__: null,
|
|
2218
|
-
|
|
2211
|
+
__wbg___wbindgen_debug_string_8a447059637473e2: function(arg0, arg1) {
|
|
2219
2212
|
const ret = debugString(getObject(arg1));
|
|
2220
2213
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2221
2214
|
const len1 = WASM_VECTOR_LEN;
|
|
2222
2215
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2223
2216
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2224
2217
|
},
|
|
2225
|
-
|
|
2218
|
+
__wbg___wbindgen_is_function_acc5528be2b923f2: function(arg0) {
|
|
2226
2219
|
const ret = typeof(getObject(arg0)) === 'function';
|
|
2227
2220
|
return ret;
|
|
2228
2221
|
},
|
|
2229
|
-
|
|
2222
|
+
__wbg___wbindgen_is_undefined_721f8decd50c87a3: function(arg0) {
|
|
2230
2223
|
const ret = getObject(arg0) === undefined;
|
|
2231
2224
|
return ret;
|
|
2232
2225
|
},
|
|
2233
|
-
|
|
2226
|
+
__wbg___wbindgen_number_get_1cc01dd708740256: function(arg0, arg1) {
|
|
2234
2227
|
const obj = getObject(arg1);
|
|
2235
2228
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
2236
2229
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
2237
2230
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
2238
2231
|
},
|
|
2239
|
-
|
|
2232
|
+
__wbg___wbindgen_throw_ea4887a5f8f9a9db: function(arg0, arg1) {
|
|
2240
2233
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
2241
2234
|
},
|
|
2242
|
-
|
|
2235
|
+
__wbg__wbg_cb_unref_33c39e13d73b25f6: function(arg0) {
|
|
2243
2236
|
getObject(arg0)._wbg_cb_unref();
|
|
2244
2237
|
},
|
|
2245
|
-
|
|
2246
|
-
getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
|
2247
|
-
}, arguments); },
|
|
2248
|
-
__wbg_addEventListener_97281b0177d72360: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2238
|
+
__wbg_addEventListener_9f744a06d0879451: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2249
2239
|
getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3), getObject(arg4));
|
|
2250
2240
|
}, arguments); },
|
|
2251
|
-
|
|
2241
|
+
__wbg_addEventListener_ea90bc131475777e: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2242
|
+
getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
|
2243
|
+
}, arguments); },
|
|
2244
|
+
__wbg_buffer_9e4d98d0766fb908: function(arg0) {
|
|
2252
2245
|
const ret = getObject(arg0).buffer;
|
|
2253
2246
|
return addHeapObject(ret);
|
|
2254
2247
|
},
|
|
2255
|
-
|
|
2256
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
2248
|
+
__wbg_call_0e855b388e315e17: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2249
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
2257
2250
|
return addHeapObject(ret);
|
|
2258
2251
|
}, arguments); },
|
|
2259
|
-
|
|
2260
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2)
|
|
2252
|
+
__wbg_call_5575218572ead796: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2253
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
2261
2254
|
return addHeapObject(ret);
|
|
2262
2255
|
}, arguments); },
|
|
2263
|
-
|
|
2256
|
+
__wbg_call_8e98ed2f3c86c4b5: function() { return handleError(function (arg0, arg1) {
|
|
2264
2257
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
2265
2258
|
return addHeapObject(ret);
|
|
2266
2259
|
}, arguments); },
|
|
2267
|
-
|
|
2260
|
+
__wbg_call_dd0f909cbc9405d0: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2268
2261
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
|
|
2269
2262
|
return addHeapObject(ret);
|
|
2270
2263
|
}, arguments); },
|
|
2271
|
-
|
|
2264
|
+
__wbg_clearTimeout_3629d6209dfcc46e: function(arg0) {
|
|
2272
2265
|
const ret = clearTimeout(takeObject(arg0));
|
|
2273
2266
|
return addHeapObject(ret);
|
|
2274
2267
|
},
|
|
2275
|
-
|
|
2276
|
-
getObject(arg0).close();
|
|
2277
|
-
},
|
|
2278
|
-
__wbg_close_af26905c832a88cb: function() { return handleError(function (arg0) {
|
|
2268
|
+
__wbg_close_26aa343c0d729303: function() { return handleError(function (arg0) {
|
|
2279
2269
|
getObject(arg0).close();
|
|
2280
2270
|
}, arguments); },
|
|
2281
|
-
|
|
2271
|
+
__wbg_close_38d22e2ee9732188: function(arg0) {
|
|
2272
|
+
getObject(arg0).close();
|
|
2273
|
+
},
|
|
2274
|
+
__wbg_close_bb32784c2f019863: function(arg0) {
|
|
2282
2275
|
getObject(arg0).close();
|
|
2283
2276
|
},
|
|
2284
|
-
|
|
2277
|
+
__wbg_data_4a7f1308dbd33a21: function(arg0) {
|
|
2285
2278
|
const ret = getObject(arg0).data;
|
|
2286
2279
|
return addHeapObject(ret);
|
|
2287
2280
|
},
|
|
2288
|
-
|
|
2281
|
+
__wbg_error_933f449d72fef598: function(arg0) {
|
|
2289
2282
|
console.error(getObject(arg0));
|
|
2290
2283
|
},
|
|
2291
2284
|
__wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
|
|
@@ -2299,18 +2292,18 @@ function __wbg_get_imports() {
|
|
|
2299
2292
|
wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
|
|
2300
2293
|
}
|
|
2301
2294
|
},
|
|
2302
|
-
|
|
2295
|
+
__wbg_from_50138b2ca136f50c: function(arg0) {
|
|
2303
2296
|
const ret = Array.from(getObject(arg0));
|
|
2304
2297
|
return addHeapObject(ret);
|
|
2305
2298
|
},
|
|
2306
|
-
|
|
2299
|
+
__wbg_getRandomValues_76dfc69825c9c552: function() { return handleError(function (arg0, arg1) {
|
|
2307
2300
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
2308
2301
|
}, arguments); },
|
|
2309
|
-
|
|
2302
|
+
__wbg_get_197a3fe98f169e38: function(arg0, arg1) {
|
|
2310
2303
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
2311
2304
|
return addHeapObject(ret);
|
|
2312
2305
|
},
|
|
2313
|
-
|
|
2306
|
+
__wbg_instanceof_ArrayBuffer_2a7bb09fee70c2da: function(arg0) {
|
|
2314
2307
|
let result;
|
|
2315
2308
|
try {
|
|
2316
2309
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
@@ -2320,7 +2313,7 @@ function __wbg_get_imports() {
|
|
|
2320
2313
|
const ret = result;
|
|
2321
2314
|
return ret;
|
|
2322
2315
|
},
|
|
2323
|
-
|
|
2316
|
+
__wbg_instanceof_Window_0d356b88a2f77c42: function(arg0) {
|
|
2324
2317
|
let result;
|
|
2325
2318
|
try {
|
|
2326
2319
|
result = getObject(arg0) instanceof Window;
|
|
@@ -2330,22 +2323,22 @@ function __wbg_get_imports() {
|
|
|
2330
2323
|
const ret = result;
|
|
2331
2324
|
return ret;
|
|
2332
2325
|
},
|
|
2333
|
-
|
|
2326
|
+
__wbg_length_589238bdcf171f0e: function(arg0) {
|
|
2334
2327
|
const ret = getObject(arg0).length;
|
|
2335
2328
|
return ret;
|
|
2336
2329
|
},
|
|
2337
|
-
|
|
2330
|
+
__wbg_length_c6054974c0a6cdb9: function(arg0) {
|
|
2338
2331
|
const ret = getObject(arg0).length;
|
|
2339
2332
|
return ret;
|
|
2340
2333
|
},
|
|
2341
|
-
|
|
2334
|
+
__wbg_log_6b5af08dd293697f: function(arg0) {
|
|
2342
2335
|
console.log(getObject(arg0));
|
|
2343
2336
|
},
|
|
2344
2337
|
__wbg_messageproperties_new: function(arg0) {
|
|
2345
2338
|
const ret = MessageProperties.__wrap(arg0);
|
|
2346
2339
|
return addHeapObject(ret);
|
|
2347
2340
|
},
|
|
2348
|
-
|
|
2341
|
+
__wbg_navigator_935098efd1dc7fe5: function(arg0) {
|
|
2349
2342
|
const ret = getObject(arg0).navigator;
|
|
2350
2343
|
return addHeapObject(ret);
|
|
2351
2344
|
},
|
|
@@ -2353,30 +2346,34 @@ function __wbg_get_imports() {
|
|
|
2353
2346
|
const ret = new Error();
|
|
2354
2347
|
return addHeapObject(ret);
|
|
2355
2348
|
},
|
|
2356
|
-
|
|
2357
|
-
const ret = new
|
|
2349
|
+
__wbg_new_2e117a478906f062: function() {
|
|
2350
|
+
const ret = new Object();
|
|
2358
2351
|
return addHeapObject(ret);
|
|
2359
2352
|
},
|
|
2360
|
-
|
|
2361
|
-
const ret = new BroadcastChannel(getStringFromWasm0(arg0, arg1));
|
|
2362
|
-
return addHeapObject(ret);
|
|
2363
|
-
}, arguments); },
|
|
2364
|
-
__wbg_new_a70fbab9066b301f: function() {
|
|
2353
|
+
__wbg_new_36e147a8ced3c6e0: function() {
|
|
2365
2354
|
const ret = new Array();
|
|
2366
2355
|
return addHeapObject(ret);
|
|
2367
2356
|
},
|
|
2368
|
-
|
|
2369
|
-
const ret = new
|
|
2357
|
+
__wbg_new_81880fb5002cb255: function(arg0) {
|
|
2358
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
2370
2359
|
return addHeapObject(ret);
|
|
2371
2360
|
},
|
|
2372
|
-
|
|
2361
|
+
__wbg_new_98e81f23cc202cc4: function() { return handleError(function () {
|
|
2362
|
+
const ret = new MessageChannel();
|
|
2363
|
+
return addHeapObject(ret);
|
|
2364
|
+
}, arguments); },
|
|
2365
|
+
__wbg_new_bf06861b1423f19e: function() { return handleError(function (arg0, arg1) {
|
|
2366
|
+
const ret = new BroadcastChannel(getStringFromWasm0(arg0, arg1));
|
|
2367
|
+
return addHeapObject(ret);
|
|
2368
|
+
}, arguments); },
|
|
2369
|
+
__wbg_new_f85beb941dc6d8aa: function(arg0, arg1) {
|
|
2373
2370
|
try {
|
|
2374
2371
|
var state0 = {a: arg0, b: arg1};
|
|
2375
2372
|
var cb0 = (arg0, arg1) => {
|
|
2376
2373
|
const a = state0.a;
|
|
2377
2374
|
state0.a = 0;
|
|
2378
2375
|
try {
|
|
2379
|
-
return
|
|
2376
|
+
return __wasm_bindgen_func_elem_4202(a, state0.b, arg0, arg1);
|
|
2380
2377
|
} finally {
|
|
2381
2378
|
state0.a = a;
|
|
2382
2379
|
}
|
|
@@ -2384,29 +2381,25 @@ function __wbg_get_imports() {
|
|
|
2384
2381
|
const ret = new Promise(cb0);
|
|
2385
2382
|
return addHeapObject(ret);
|
|
2386
2383
|
} finally {
|
|
2387
|
-
state0.a =
|
|
2384
|
+
state0.a = 0;
|
|
2388
2385
|
}
|
|
2389
2386
|
},
|
|
2390
|
-
|
|
2391
|
-
const ret = new MessageChannel();
|
|
2392
|
-
return addHeapObject(ret);
|
|
2393
|
-
}, arguments); },
|
|
2394
|
-
__wbg_new_from_slice_22da9388ac046e50: function(arg0, arg1) {
|
|
2387
|
+
__wbg_new_from_slice_543b875b27789a8f: function(arg0, arg1) {
|
|
2395
2388
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
2396
2389
|
return addHeapObject(ret);
|
|
2397
2390
|
},
|
|
2398
|
-
|
|
2391
|
+
__wbg_new_no_args_2d7333de60de5ac7: function(arg0, arg1) {
|
|
2399
2392
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
2400
2393
|
return addHeapObject(ret);
|
|
2401
2394
|
},
|
|
2402
|
-
|
|
2395
|
+
__wbg_new_typed_00a409eb4ec4f2d9: function(arg0, arg1) {
|
|
2403
2396
|
try {
|
|
2404
2397
|
var state0 = {a: arg0, b: arg1};
|
|
2405
2398
|
var cb0 = (arg0, arg1) => {
|
|
2406
2399
|
const a = state0.a;
|
|
2407
2400
|
state0.a = 0;
|
|
2408
2401
|
try {
|
|
2409
|
-
return
|
|
2402
|
+
return __wasm_bindgen_func_elem_4202(a, state0.b, arg0, arg1);
|
|
2410
2403
|
} finally {
|
|
2411
2404
|
state0.a = a;
|
|
2412
2405
|
}
|
|
@@ -2414,18 +2407,14 @@ function __wbg_get_imports() {
|
|
|
2414
2407
|
const ret = new Promise(cb0);
|
|
2415
2408
|
return addHeapObject(ret);
|
|
2416
2409
|
} finally {
|
|
2417
|
-
state0.a =
|
|
2410
|
+
state0.a = 0;
|
|
2418
2411
|
}
|
|
2419
2412
|
},
|
|
2420
|
-
|
|
2421
|
-
const ret = new Array();
|
|
2422
|
-
return addHeapObject(ret);
|
|
2423
|
-
},
|
|
2424
|
-
__wbg_new_with_str_299114bdb2430303: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2413
|
+
__wbg_new_with_str_df5b9855ce14dac6: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2425
2414
|
const ret = new WebSocket(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
2426
2415
|
return addHeapObject(ret);
|
|
2427
2416
|
}, arguments); },
|
|
2428
|
-
|
|
2417
|
+
__wbg_now_d2e0afbad4edbe82: function() {
|
|
2429
2418
|
const ret = Date.now();
|
|
2430
2419
|
return ret;
|
|
2431
2420
|
},
|
|
@@ -2433,7 +2422,7 @@ function __wbg_get_imports() {
|
|
|
2433
2422
|
const ret = getObject(arg0).now();
|
|
2434
2423
|
return ret;
|
|
2435
2424
|
},
|
|
2436
|
-
|
|
2425
|
+
__wbg_onLine_b14b12d045df88e2: function(arg0) {
|
|
2437
2426
|
const ret = getObject(arg0).onLine;
|
|
2438
2427
|
return ret;
|
|
2439
2428
|
},
|
|
@@ -2441,82 +2430,82 @@ function __wbg_get_imports() {
|
|
|
2441
2430
|
const ret = getObject(arg0).performance;
|
|
2442
2431
|
return addHeapObject(ret);
|
|
2443
2432
|
},
|
|
2444
|
-
|
|
2433
|
+
__wbg_port1_aaca04ed552c16ef: function(arg0) {
|
|
2445
2434
|
const ret = getObject(arg0).port1;
|
|
2446
2435
|
return addHeapObject(ret);
|
|
2447
2436
|
},
|
|
2448
|
-
|
|
2437
|
+
__wbg_port2_baea902d7925a544: function(arg0) {
|
|
2449
2438
|
const ret = getObject(arg0).port2;
|
|
2450
2439
|
return addHeapObject(ret);
|
|
2451
2440
|
},
|
|
2452
|
-
|
|
2441
|
+
__wbg_postMessage_5b1dc9f8de88488a: function() { return handleError(function (arg0, arg1) {
|
|
2453
2442
|
getObject(arg0).postMessage(getObject(arg1));
|
|
2454
2443
|
}, arguments); },
|
|
2455
|
-
|
|
2444
|
+
__wbg_postMessage_83e0053b2cd5b05e: function() { return handleError(function (arg0, arg1) {
|
|
2456
2445
|
getObject(arg0).postMessage(getObject(arg1));
|
|
2457
2446
|
}, arguments); },
|
|
2458
|
-
|
|
2447
|
+
__wbg_prototypesetcall_d721637c7ca66eb8: function(arg0, arg1, arg2) {
|
|
2459
2448
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
2460
2449
|
},
|
|
2461
|
-
|
|
2450
|
+
__wbg_push_f724b5db8acf89d2: function(arg0, arg1) {
|
|
2462
2451
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
2463
2452
|
return ret;
|
|
2464
2453
|
},
|
|
2465
|
-
|
|
2454
|
+
__wbg_queueMicrotask_1c9b3800e321a967: function(arg0) {
|
|
2466
2455
|
const ret = getObject(arg0).queueMicrotask;
|
|
2467
2456
|
return addHeapObject(ret);
|
|
2468
2457
|
},
|
|
2469
|
-
|
|
2458
|
+
__wbg_queueMicrotask_311744e534a929a3: function(arg0) {
|
|
2470
2459
|
queueMicrotask(getObject(arg0));
|
|
2471
2460
|
},
|
|
2472
|
-
|
|
2461
|
+
__wbg_random_3182549db57fb083: function() {
|
|
2473
2462
|
const ret = Math.random();
|
|
2474
2463
|
return ret;
|
|
2475
2464
|
},
|
|
2476
|
-
|
|
2465
|
+
__wbg_removeEventListener_c6782a9c30557d31: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2477
2466
|
getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
|
2478
2467
|
}, arguments); },
|
|
2479
|
-
|
|
2468
|
+
__wbg_resolve_d82363d90af6928a: function(arg0) {
|
|
2480
2469
|
const ret = Promise.resolve(getObject(arg0));
|
|
2481
2470
|
return addHeapObject(ret);
|
|
2482
2471
|
},
|
|
2483
|
-
|
|
2472
|
+
__wbg_send_982c819b9a1b34a5: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2484
2473
|
getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2));
|
|
2485
2474
|
}, arguments); },
|
|
2486
|
-
|
|
2487
|
-
const ret = setTimeout(getObject(arg0), arg1);
|
|
2488
|
-
return ret;
|
|
2489
|
-
},
|
|
2490
|
-
__wbg_setTimeout_ef24d2fc3ad97385: function() { return handleError(function (arg0, arg1) {
|
|
2475
|
+
__wbg_setTimeout_56bcdccbad22fd44: function() { return handleError(function (arg0, arg1) {
|
|
2491
2476
|
const ret = setTimeout(getObject(arg0), arg1);
|
|
2492
2477
|
return addHeapObject(ret);
|
|
2493
2478
|
}, arguments); },
|
|
2494
|
-
|
|
2479
|
+
__wbg_setTimeout_a64c21ff609c4c4a: function(arg0, arg1) {
|
|
2480
|
+
const ret = setTimeout(getObject(arg0), arg1);
|
|
2481
|
+
return ret;
|
|
2482
|
+
},
|
|
2483
|
+
__wbg_set_4564f7dc44fcb0c9: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2495
2484
|
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
2496
2485
|
return ret;
|
|
2497
2486
|
}, arguments); },
|
|
2498
|
-
|
|
2487
|
+
__wbg_set_binaryType_148427b11a8e6551: function(arg0, arg1) {
|
|
2499
2488
|
getObject(arg0).binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
2500
2489
|
},
|
|
2501
|
-
|
|
2490
|
+
__wbg_set_once_0ff9e026e78fe912: function(arg0, arg1) {
|
|
2502
2491
|
getObject(arg0).once = arg1 !== 0;
|
|
2503
2492
|
},
|
|
2504
|
-
|
|
2493
|
+
__wbg_set_onclose_8134952b2a9ec104: function(arg0, arg1) {
|
|
2505
2494
|
getObject(arg0).onclose = getObject(arg1);
|
|
2506
2495
|
},
|
|
2507
|
-
|
|
2496
|
+
__wbg_set_onerror_3f68563f77d362f1: function(arg0, arg1) {
|
|
2508
2497
|
getObject(arg0).onerror = getObject(arg1);
|
|
2509
2498
|
},
|
|
2510
|
-
|
|
2499
|
+
__wbg_set_onmessage_397a79f643011142: function(arg0, arg1) {
|
|
2511
2500
|
getObject(arg0).onmessage = getObject(arg1);
|
|
2512
2501
|
},
|
|
2513
|
-
|
|
2502
|
+
__wbg_set_onmessage_8700520361fa9f48: function(arg0, arg1) {
|
|
2514
2503
|
getObject(arg0).onmessage = getObject(arg1);
|
|
2515
2504
|
},
|
|
2516
|
-
|
|
2505
|
+
__wbg_set_onmessage_a8bb5e3dd796cf0d: function(arg0, arg1) {
|
|
2517
2506
|
getObject(arg0).onmessage = getObject(arg1);
|
|
2518
2507
|
},
|
|
2519
|
-
|
|
2508
|
+
__wbg_set_onopen_ca8d311fe5282041: function(arg0, arg1) {
|
|
2520
2509
|
getObject(arg0).onopen = getObject(arg1);
|
|
2521
2510
|
},
|
|
2522
2511
|
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
@@ -2526,64 +2515,64 @@ function __wbg_get_imports() {
|
|
|
2526
2515
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2527
2516
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2528
2517
|
},
|
|
2529
|
-
|
|
2518
|
+
__wbg_start_8ca2b69cfb7618b6: function(arg0) {
|
|
2530
2519
|
getObject(arg0).start();
|
|
2531
2520
|
},
|
|
2532
|
-
|
|
2533
|
-
const ret = typeof
|
|
2521
|
+
__wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938: function() {
|
|
2522
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
2534
2523
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
2535
2524
|
},
|
|
2536
|
-
|
|
2537
|
-
const ret = typeof
|
|
2525
|
+
__wbg_static_accessor_GLOBAL_ce44e66a4935da8c: function() {
|
|
2526
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
2538
2527
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
2539
2528
|
},
|
|
2540
|
-
|
|
2529
|
+
__wbg_static_accessor_SELF_44f6e0cb5e67cdad: function() {
|
|
2541
2530
|
const ret = typeof self === 'undefined' ? null : self;
|
|
2542
2531
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
2543
2532
|
},
|
|
2544
|
-
|
|
2533
|
+
__wbg_static_accessor_WINDOW_168f178805d978fe: function() {
|
|
2545
2534
|
const ret = typeof window === 'undefined' ? null : window;
|
|
2546
2535
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
2547
2536
|
},
|
|
2548
|
-
|
|
2549
|
-
const ret = getObject(arg0).then(getObject(arg1));
|
|
2537
|
+
__wbg_then_05edfc8a4fea5106: function(arg0, arg1, arg2) {
|
|
2538
|
+
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
2550
2539
|
return addHeapObject(ret);
|
|
2551
2540
|
},
|
|
2552
|
-
|
|
2553
|
-
const ret = getObject(arg0).then(getObject(arg1)
|
|
2541
|
+
__wbg_then_591b6b3a75ee817a: function(arg0, arg1) {
|
|
2542
|
+
const ret = getObject(arg0).then(getObject(arg1));
|
|
2554
2543
|
return addHeapObject(ret);
|
|
2555
2544
|
},
|
|
2556
|
-
|
|
2545
|
+
__wbg_warn_cd671287bc02594a: function(arg0) {
|
|
2557
2546
|
console.warn(getObject(arg0));
|
|
2558
2547
|
},
|
|
2559
2548
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
2560
|
-
// Cast intrinsic for `Closure(Closure {
|
|
2561
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2549
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 591, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2550
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_4192);
|
|
2562
2551
|
return addHeapObject(ret);
|
|
2563
2552
|
},
|
|
2564
2553
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
2565
|
-
// Cast intrinsic for `Closure(Closure {
|
|
2566
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2554
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 9, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2555
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1072);
|
|
2567
2556
|
return addHeapObject(ret);
|
|
2568
2557
|
},
|
|
2569
2558
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
2570
|
-
// Cast intrinsic for `Closure(Closure {
|
|
2571
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2559
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 9, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2560
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1072_2);
|
|
2572
2561
|
return addHeapObject(ret);
|
|
2573
2562
|
},
|
|
2574
2563
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
2575
|
-
// Cast intrinsic for `Closure(Closure {
|
|
2576
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2564
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 9, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2565
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1072_3);
|
|
2577
2566
|
return addHeapObject(ret);
|
|
2578
2567
|
},
|
|
2579
2568
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
2580
|
-
// Cast intrinsic for `Closure(Closure {
|
|
2581
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2569
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 9, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2570
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1072_4);
|
|
2582
2571
|
return addHeapObject(ret);
|
|
2583
2572
|
},
|
|
2584
2573
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
2585
|
-
// Cast intrinsic for `Closure(Closure {
|
|
2586
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2574
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 424, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2575
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2637);
|
|
2587
2576
|
return addHeapObject(ret);
|
|
2588
2577
|
},
|
|
2589
2578
|
__wbindgen_cast_0000000000000007: function(arg0) {
|
|
@@ -2617,30 +2606,30 @@ function __wbg_get_imports() {
|
|
|
2617
2606
|
};
|
|
2618
2607
|
}
|
|
2619
2608
|
|
|
2620
|
-
function
|
|
2621
|
-
wasm.
|
|
2609
|
+
function __wasm_bindgen_func_elem_2637(arg0, arg1) {
|
|
2610
|
+
wasm.__wasm_bindgen_func_elem_2637(arg0, arg1);
|
|
2622
2611
|
}
|
|
2623
2612
|
|
|
2624
|
-
function
|
|
2625
|
-
wasm.
|
|
2613
|
+
function __wasm_bindgen_func_elem_1072(arg0, arg1, arg2) {
|
|
2614
|
+
wasm.__wasm_bindgen_func_elem_1072(arg0, arg1, addHeapObject(arg2));
|
|
2626
2615
|
}
|
|
2627
2616
|
|
|
2628
|
-
function
|
|
2629
|
-
wasm.
|
|
2617
|
+
function __wasm_bindgen_func_elem_1072_2(arg0, arg1, arg2) {
|
|
2618
|
+
wasm.__wasm_bindgen_func_elem_1072_2(arg0, arg1, addHeapObject(arg2));
|
|
2630
2619
|
}
|
|
2631
2620
|
|
|
2632
|
-
function
|
|
2633
|
-
wasm.
|
|
2621
|
+
function __wasm_bindgen_func_elem_1072_3(arg0, arg1, arg2) {
|
|
2622
|
+
wasm.__wasm_bindgen_func_elem_1072_3(arg0, arg1, addHeapObject(arg2));
|
|
2634
2623
|
}
|
|
2635
2624
|
|
|
2636
|
-
function
|
|
2637
|
-
wasm.
|
|
2625
|
+
function __wasm_bindgen_func_elem_1072_4(arg0, arg1, arg2) {
|
|
2626
|
+
wasm.__wasm_bindgen_func_elem_1072_4(arg0, arg1, addHeapObject(arg2));
|
|
2638
2627
|
}
|
|
2639
2628
|
|
|
2640
|
-
function
|
|
2629
|
+
function __wasm_bindgen_func_elem_4192(arg0, arg1, arg2) {
|
|
2641
2630
|
try {
|
|
2642
2631
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2643
|
-
wasm.
|
|
2632
|
+
wasm.__wasm_bindgen_func_elem_4192(retptr, arg0, arg1, addHeapObject(arg2));
|
|
2644
2633
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2645
2634
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2646
2635
|
if (r1) {
|
|
@@ -2651,54 +2640,54 @@ function __wasm_bindgen_func_elem_4240(arg0, arg1, arg2) {
|
|
|
2651
2640
|
}
|
|
2652
2641
|
}
|
|
2653
2642
|
|
|
2654
|
-
function
|
|
2655
|
-
wasm.
|
|
2643
|
+
function __wasm_bindgen_func_elem_4202(arg0, arg1, arg2, arg3) {
|
|
2644
|
+
wasm.__wasm_bindgen_func_elem_4202(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
2656
2645
|
}
|
|
2657
2646
|
|
|
2658
2647
|
|
|
2659
2648
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
2660
2649
|
const BridgeConfigFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2661
2650
|
? { register: () => {}, unregister: () => {} }
|
|
2662
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_bridgeconfig_free(ptr
|
|
2651
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_bridgeconfig_free(ptr, 1));
|
|
2663
2652
|
const BrokerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2664
2653
|
? { register: () => {}, unregister: () => {} }
|
|
2665
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_broker_free(ptr
|
|
2654
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_broker_free(ptr, 1));
|
|
2666
2655
|
const BrokerConfigFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2667
2656
|
? { register: () => {}, unregister: () => {} }
|
|
2668
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_brokerconfig_free(ptr
|
|
2657
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_brokerconfig_free(ptr, 1));
|
|
2669
2658
|
const CodecRegistryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2670
2659
|
? { register: () => {}, unregister: () => {} }
|
|
2671
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_codecregistry_free(ptr
|
|
2660
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_codecregistry_free(ptr, 1));
|
|
2672
2661
|
const ConnectOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2673
2662
|
? { register: () => {}, unregister: () => {} }
|
|
2674
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_connectoptions_free(ptr
|
|
2663
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_connectoptions_free(ptr, 1));
|
|
2675
2664
|
const DeflateCodecFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2676
2665
|
? { register: () => {}, unregister: () => {} }
|
|
2677
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_deflatecodec_free(ptr
|
|
2666
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_deflatecodec_free(ptr, 1));
|
|
2678
2667
|
const GzipCodecFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2679
2668
|
? { register: () => {}, unregister: () => {} }
|
|
2680
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_gzipcodec_free(ptr
|
|
2669
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_gzipcodec_free(ptr, 1));
|
|
2681
2670
|
const MessagePropertiesFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2682
2671
|
? { register: () => {}, unregister: () => {} }
|
|
2683
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_messageproperties_free(ptr
|
|
2672
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_messageproperties_free(ptr, 1));
|
|
2684
2673
|
const MqttClientFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2685
2674
|
? { register: () => {}, unregister: () => {} }
|
|
2686
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_mqttclient_free(ptr
|
|
2675
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_mqttclient_free(ptr, 1));
|
|
2687
2676
|
const PublishOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2688
2677
|
? { register: () => {}, unregister: () => {} }
|
|
2689
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_publishoptions_free(ptr
|
|
2678
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_publishoptions_free(ptr, 1));
|
|
2690
2679
|
const ReconnectOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2691
2680
|
? { register: () => {}, unregister: () => {} }
|
|
2692
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_reconnectoptions_free(ptr
|
|
2681
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_reconnectoptions_free(ptr, 1));
|
|
2693
2682
|
const SubscribeOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2694
2683
|
? { register: () => {}, unregister: () => {} }
|
|
2695
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_subscribeoptions_free(ptr
|
|
2684
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_subscribeoptions_free(ptr, 1));
|
|
2696
2685
|
const TopicMappingFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2697
2686
|
? { register: () => {}, unregister: () => {} }
|
|
2698
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_topicmapping_free(ptr
|
|
2687
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_topicmapping_free(ptr, 1));
|
|
2699
2688
|
const WillMessageFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2700
2689
|
? { register: () => {}, unregister: () => {} }
|
|
2701
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_willmessage_free(ptr
|
|
2690
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_willmessage_free(ptr, 1));
|
|
2702
2691
|
|
|
2703
2692
|
function addHeapObject(obj) {
|
|
2704
2693
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
@@ -2717,7 +2706,7 @@ function _assertClass(instance, klass) {
|
|
|
2717
2706
|
|
|
2718
2707
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
2719
2708
|
? { register: () => {}, unregister: () => {} }
|
|
2720
|
-
: new FinalizationRegistry(state =>
|
|
2709
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_export5(state.a, state.b));
|
|
2721
2710
|
|
|
2722
2711
|
function debugString(val) {
|
|
2723
2712
|
// primitive types
|
|
@@ -2819,8 +2808,7 @@ function getDataViewMemory0() {
|
|
|
2819
2808
|
}
|
|
2820
2809
|
|
|
2821
2810
|
function getStringFromWasm0(ptr, len) {
|
|
2822
|
-
|
|
2823
|
-
return decodeText(ptr, len);
|
|
2811
|
+
return decodeText(ptr >>> 0, len);
|
|
2824
2812
|
}
|
|
2825
2813
|
|
|
2826
2814
|
let cachedUint32ArrayMemory0 = null;
|
|
@@ -2858,8 +2846,8 @@ function isLikeNone(x) {
|
|
|
2858
2846
|
return x === undefined || x === null;
|
|
2859
2847
|
}
|
|
2860
2848
|
|
|
2861
|
-
function makeMutClosure(arg0, arg1,
|
|
2862
|
-
const state = { a: arg0, b: arg1, cnt: 1
|
|
2849
|
+
function makeMutClosure(arg0, arg1, f) {
|
|
2850
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
2863
2851
|
const real = (...args) => {
|
|
2864
2852
|
|
|
2865
2853
|
// First up with a closure we increment the internal reference
|
|
@@ -2877,7 +2865,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
2877
2865
|
};
|
|
2878
2866
|
real._wbg_cb_unref = () => {
|
|
2879
2867
|
if (--state.cnt === 0) {
|
|
2880
|
-
|
|
2868
|
+
wasm.__wbindgen_export5(state.a, state.b);
|
|
2881
2869
|
state.a = 0;
|
|
2882
2870
|
CLOSURE_DTORS.unregister(state);
|
|
2883
2871
|
}
|
|
@@ -2965,8 +2953,9 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
2965
2953
|
|
|
2966
2954
|
let WASM_VECTOR_LEN = 0;
|
|
2967
2955
|
|
|
2968
|
-
let wasmModule, wasm;
|
|
2956
|
+
let wasmModule, wasmInstance, wasm;
|
|
2969
2957
|
function __wbg_finalize_init(instance, module) {
|
|
2958
|
+
wasmInstance = instance;
|
|
2970
2959
|
wasm = instance.exports;
|
|
2971
2960
|
wasmModule = module;
|
|
2972
2961
|
cachedDataViewMemory0 = null;
|
package/mqtt5_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mqtt5-wasm",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.3",
|
|
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",
|
package/mqtt5_wasm_bg.wasm.d.ts
DELETED
|
@@ -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_withMinSize: (a: number, b: number) => number;
|
|
233
|
-
export const gzipcodec_withMaxDecompressedSize: (a: number, b: number) => number;
|
|
234
|
-
export const gzipcodec_new: () => number;
|
|
235
|
-
export const createGzipCodec: (a: number, b: number) => number;
|
|
236
|
-
export const __wbg_gzipcodec_free: (a: number, b: number) => void;
|
|
237
|
-
export const gzipcodec_withLevel: (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;
|