mqtt5-wasm 0.2.4 → 0.4.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 +2 -2
- package/mqtt5_wasm.d.ts +195 -165
- package/mqtt5_wasm.js +714 -558
- package/mqtt5_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/mqtt5_wasm.js
CHANGED
|
@@ -92,6 +92,11 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
92
92
|
return result;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
96
|
+
ptr = ptr >>> 0;
|
|
97
|
+
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
98
|
+
}
|
|
99
|
+
|
|
95
100
|
function getArrayU8FromWasm0(ptr, len) {
|
|
96
101
|
ptr = ptr >>> 0;
|
|
97
102
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
@@ -110,6 +115,14 @@ function getStringFromWasm0(ptr, len) {
|
|
|
110
115
|
return decodeText(ptr, len);
|
|
111
116
|
}
|
|
112
117
|
|
|
118
|
+
let cachedUint32ArrayMemory0 = null;
|
|
119
|
+
function getUint32ArrayMemory0() {
|
|
120
|
+
if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
|
|
121
|
+
cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
|
|
122
|
+
}
|
|
123
|
+
return cachedUint32ArrayMemory0;
|
|
124
|
+
}
|
|
125
|
+
|
|
113
126
|
let cachedUint8ArrayMemory0 = null;
|
|
114
127
|
function getUint8ArrayMemory0() {
|
|
115
128
|
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
@@ -238,20 +251,20 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
238
251
|
|
|
239
252
|
let WASM_VECTOR_LEN = 0;
|
|
240
253
|
|
|
241
|
-
function
|
|
242
|
-
wasm.
|
|
254
|
+
function wasm_bindgen__convert__closures_____invoke__h01763d79c10fe65e(arg0, arg1, arg2) {
|
|
255
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h01763d79c10fe65e(arg0, arg1, arg2);
|
|
243
256
|
}
|
|
244
257
|
|
|
245
|
-
function
|
|
246
|
-
wasm.
|
|
258
|
+
function wasm_bindgen__convert__closures_____invoke__hf9723d0014506a5b(arg0, arg1) {
|
|
259
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hf9723d0014506a5b(arg0, arg1);
|
|
247
260
|
}
|
|
248
261
|
|
|
249
|
-
function
|
|
250
|
-
wasm.
|
|
262
|
+
function wasm_bindgen__convert__closures_____invoke__ha9d3e198cd0951b0(arg0, arg1, arg2) {
|
|
263
|
+
wasm.wasm_bindgen__convert__closures_____invoke__ha9d3e198cd0951b0(arg0, arg1, arg2);
|
|
251
264
|
}
|
|
252
265
|
|
|
253
|
-
function
|
|
254
|
-
wasm.
|
|
266
|
+
function wasm_bindgen__convert__closures_____invoke__h1ee277075b103ebf(arg0, arg1, arg2, arg3) {
|
|
267
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h1ee277075b103ebf(arg0, arg1, arg2, arg3);
|
|
255
268
|
}
|
|
256
269
|
|
|
257
270
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
@@ -272,6 +285,10 @@ const WasmConnectOptionsFinalization = (typeof FinalizationRegistry === 'undefin
|
|
|
272
285
|
? { register: () => {}, unregister: () => {} }
|
|
273
286
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmconnectoptions_free(ptr >>> 0, 1));
|
|
274
287
|
|
|
288
|
+
const WasmMessagePropertiesFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
289
|
+
? { register: () => {}, unregister: () => {} }
|
|
290
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmmessageproperties_free(ptr >>> 0, 1));
|
|
291
|
+
|
|
275
292
|
const WasmMqttClientFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
276
293
|
? { register: () => {}, unregister: () => {} }
|
|
277
294
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmmqttclient_free(ptr >>> 0, 1));
|
|
@@ -304,15 +321,20 @@ export class WasmBridgeConfig {
|
|
|
304
321
|
wasm.__wbg_wasmbridgeconfig_free(ptr, 0);
|
|
305
322
|
}
|
|
306
323
|
/**
|
|
307
|
-
* @param {string}
|
|
324
|
+
* @param {string | null} [password]
|
|
308
325
|
*/
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
326
|
+
set password(password) {
|
|
327
|
+
var ptr0 = isLikeNone(password) ? 0 : passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
328
|
+
var len0 = WASM_VECTOR_LEN;
|
|
329
|
+
wasm.wasmbridgeconfig_set_password(this.__wbg_ptr, ptr0, len0);
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* @param {string | null} [username]
|
|
333
|
+
*/
|
|
334
|
+
set username(username) {
|
|
335
|
+
var ptr0 = isLikeNone(username) ? 0 : passStringToWasm0(username, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
336
|
+
var len0 = WASM_VECTOR_LEN;
|
|
337
|
+
wasm.wasmbridgeconfig_set_username(this.__wbg_ptr, ptr0, len0);
|
|
316
338
|
}
|
|
317
339
|
/**
|
|
318
340
|
* @param {string} client_id
|
|
@@ -335,20 +357,21 @@ export class WasmBridgeConfig {
|
|
|
335
357
|
wasm.wasmbridgeconfig_set_keep_alive_secs(this.__wbg_ptr, secs);
|
|
336
358
|
}
|
|
337
359
|
/**
|
|
338
|
-
* @param {string
|
|
360
|
+
* @param {string} name
|
|
339
361
|
*/
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
wasm.
|
|
362
|
+
constructor(name) {
|
|
363
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
364
|
+
const len0 = WASM_VECTOR_LEN;
|
|
365
|
+
const ret = wasm.wasmbridgeconfig_new(ptr0, len0);
|
|
366
|
+
this.__wbg_ptr = ret >>> 0;
|
|
367
|
+
WasmBridgeConfigFinalization.register(this, this.__wbg_ptr, this);
|
|
368
|
+
return this;
|
|
344
369
|
}
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
var len0 = WASM_VECTOR_LEN;
|
|
351
|
-
wasm.wasmbridgeconfig_set_password(this.__wbg_ptr, ptr0, len0);
|
|
370
|
+
validate() {
|
|
371
|
+
const ret = wasm.wasmbridgeconfig_validate(this.__wbg_ptr);
|
|
372
|
+
if (ret[1]) {
|
|
373
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
374
|
+
}
|
|
352
375
|
}
|
|
353
376
|
/**
|
|
354
377
|
* @param {WasmTopicMapping} mapping
|
|
@@ -358,12 +381,6 @@ export class WasmBridgeConfig {
|
|
|
358
381
|
var ptr0 = mapping.__destroy_into_raw();
|
|
359
382
|
wasm.wasmbridgeconfig_add_topic(this.__wbg_ptr, ptr0);
|
|
360
383
|
}
|
|
361
|
-
validate() {
|
|
362
|
-
const ret = wasm.wasmbridgeconfig_validate(this.__wbg_ptr);
|
|
363
|
-
if (ret[1]) {
|
|
364
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
384
|
}
|
|
368
385
|
if (Symbol.dispose) WasmBridgeConfig.prototype[Symbol.dispose] = WasmBridgeConfig.prototype.free;
|
|
369
386
|
|
|
@@ -394,52 +411,22 @@ export class WasmBroker {
|
|
|
394
411
|
const ptr = this.__destroy_into_raw();
|
|
395
412
|
wasm.__wbg_wasmbroker_free(ptr, 0);
|
|
396
413
|
}
|
|
397
|
-
constructor() {
|
|
398
|
-
const ret = wasm.wasmbroker_new();
|
|
399
|
-
if (ret[2]) {
|
|
400
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
401
|
-
}
|
|
402
|
-
this.__wbg_ptr = ret[0] >>> 0;
|
|
403
|
-
WasmBrokerFinalization.register(this, this.__wbg_ptr, this);
|
|
404
|
-
return this;
|
|
405
|
-
}
|
|
406
|
-
/**
|
|
407
|
-
* @param {WasmBrokerConfig} wasm_config
|
|
408
|
-
* @returns {WasmBroker}
|
|
409
|
-
*/
|
|
410
|
-
static with_config(wasm_config) {
|
|
411
|
-
_assertClass(wasm_config, WasmBrokerConfig);
|
|
412
|
-
var ptr0 = wasm_config.__destroy_into_raw();
|
|
413
|
-
const ret = wasm.wasmbroker_with_config(ptr0);
|
|
414
|
-
if (ret[2]) {
|
|
415
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
416
|
-
}
|
|
417
|
-
return WasmBroker.__wrap(ret[0]);
|
|
418
|
-
}
|
|
419
414
|
/**
|
|
420
|
-
* @param {
|
|
421
|
-
* @param {
|
|
415
|
+
* @param {WasmBridgeConfig} config
|
|
416
|
+
* @param {MessagePort} remote_port
|
|
422
417
|
* @returns {Promise<void>}
|
|
423
418
|
*/
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
const
|
|
428
|
-
const len1 = WASM_VECTOR_LEN;
|
|
429
|
-
const ret = wasm.wasmbroker_add_user(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
419
|
+
add_bridge(config, remote_port) {
|
|
420
|
+
_assertClass(config, WasmBridgeConfig);
|
|
421
|
+
var ptr0 = config.__destroy_into_raw();
|
|
422
|
+
const ret = wasm.wasmbroker_add_bridge(this.__wbg_ptr, ptr0, remote_port);
|
|
430
423
|
return ret;
|
|
431
424
|
}
|
|
432
425
|
/**
|
|
433
|
-
* @
|
|
434
|
-
* @param {string} password_hash
|
|
435
|
-
* @returns {Promise<void>}
|
|
426
|
+
* @returns {Promise<number>}
|
|
436
427
|
*/
|
|
437
|
-
|
|
438
|
-
const
|
|
439
|
-
const len0 = WASM_VECTOR_LEN;
|
|
440
|
-
const ptr1 = passStringToWasm0(password_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
441
|
-
const len1 = WASM_VECTOR_LEN;
|
|
442
|
-
const ret = wasm.wasmbroker_add_user_with_hash(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
428
|
+
user_count() {
|
|
429
|
+
const ret = wasm.wasmbroker_user_count(this.__wbg_ptr);
|
|
443
430
|
return ret;
|
|
444
431
|
}
|
|
445
432
|
/**
|
|
@@ -453,27 +440,42 @@ export class WasmBroker {
|
|
|
453
440
|
return ret;
|
|
454
441
|
}
|
|
455
442
|
/**
|
|
456
|
-
* @param {
|
|
457
|
-
* @returns {
|
|
443
|
+
* @param {WasmBrokerConfig} wasm_config
|
|
444
|
+
* @returns {WasmBroker}
|
|
458
445
|
*/
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
const ret = wasm.
|
|
463
|
-
|
|
446
|
+
static with_config(wasm_config) {
|
|
447
|
+
_assertClass(wasm_config, WasmBrokerConfig);
|
|
448
|
+
var ptr0 = wasm_config.__destroy_into_raw();
|
|
449
|
+
const ret = wasm.wasmbroker_with_config(ptr0);
|
|
450
|
+
if (ret[2]) {
|
|
451
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
452
|
+
}
|
|
453
|
+
return WasmBroker.__wrap(ret[0]);
|
|
464
454
|
}
|
|
465
455
|
/**
|
|
466
|
-
* @
|
|
456
|
+
* @param {string} username
|
|
457
|
+
* @param {string} topic_pattern
|
|
458
|
+
* @param {string} permission
|
|
459
|
+
* @returns {Promise<void>}
|
|
467
460
|
*/
|
|
468
|
-
|
|
469
|
-
const
|
|
461
|
+
add_acl_rule(username, topic_pattern, permission) {
|
|
462
|
+
const ptr0 = passStringToWasm0(username, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
463
|
+
const len0 = WASM_VECTOR_LEN;
|
|
464
|
+
const ptr1 = passStringToWasm0(topic_pattern, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
465
|
+
const len1 = WASM_VECTOR_LEN;
|
|
466
|
+
const ptr2 = passStringToWasm0(permission, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
467
|
+
const len2 = WASM_VECTOR_LEN;
|
|
468
|
+
const ret = wasm.wasmbroker_add_acl_rule(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
470
469
|
return ret;
|
|
471
470
|
}
|
|
472
471
|
/**
|
|
473
|
-
* @
|
|
472
|
+
* @returns {string[]}
|
|
474
473
|
*/
|
|
475
|
-
|
|
476
|
-
wasm.
|
|
474
|
+
list_bridges() {
|
|
475
|
+
const ret = wasm.wasmbroker_list_bridges(this.__wbg_ptr);
|
|
476
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
477
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
478
|
+
return v1;
|
|
477
479
|
}
|
|
478
480
|
/**
|
|
479
481
|
* @param {string} password
|
|
@@ -500,50 +502,89 @@ export class WasmBroker {
|
|
|
500
502
|
}
|
|
501
503
|
}
|
|
502
504
|
/**
|
|
503
|
-
* @
|
|
505
|
+
* @param {string} name
|
|
506
|
+
* @returns {Promise<void>}
|
|
504
507
|
*/
|
|
505
|
-
|
|
506
|
-
const
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
508
|
+
remove_bridge(name) {
|
|
509
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
510
|
+
const len0 = WASM_VECTOR_LEN;
|
|
511
|
+
const ret = wasm.wasmbroker_remove_bridge(this.__wbg_ptr, ptr0, len0);
|
|
512
|
+
return ret;
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* @returns {Promise<number>}
|
|
516
|
+
*/
|
|
517
|
+
acl_rule_count() {
|
|
518
|
+
const ret = wasm.wasmbroker_acl_rule_count(this.__wbg_ptr);
|
|
519
|
+
return ret;
|
|
511
520
|
}
|
|
512
521
|
/**
|
|
513
|
-
* @param {WasmBridgeConfig} config
|
|
514
|
-
* @param {MessagePort} remote_port
|
|
515
522
|
* @returns {Promise<void>}
|
|
516
523
|
*/
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
var ptr0 = config.__destroy_into_raw();
|
|
520
|
-
const ret = wasm.wasmbroker_add_bridge(this.__wbg_ptr, ptr0, remote_port);
|
|
524
|
+
clear_acl_rules() {
|
|
525
|
+
const ret = wasm.wasmbroker_clear_acl_rules(this.__wbg_ptr);
|
|
521
526
|
return ret;
|
|
522
527
|
}
|
|
523
528
|
/**
|
|
524
|
-
* @param {string} name
|
|
525
529
|
* @returns {Promise<void>}
|
|
526
530
|
*/
|
|
527
|
-
|
|
528
|
-
const
|
|
531
|
+
stop_all_bridges() {
|
|
532
|
+
const ret = wasm.wasmbroker_stop_all_bridges(this.__wbg_ptr);
|
|
533
|
+
return ret;
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* @param {string} username
|
|
537
|
+
* @param {string} password_hash
|
|
538
|
+
* @returns {Promise<void>}
|
|
539
|
+
*/
|
|
540
|
+
add_user_with_hash(username, password_hash) {
|
|
541
|
+
const ptr0 = passStringToWasm0(username, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
529
542
|
const len0 = WASM_VECTOR_LEN;
|
|
530
|
-
const
|
|
543
|
+
const ptr1 = passStringToWasm0(password_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
544
|
+
const len1 = WASM_VECTOR_LEN;
|
|
545
|
+
const ret = wasm.wasmbroker_add_user_with_hash(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
531
546
|
return ret;
|
|
532
547
|
}
|
|
533
548
|
/**
|
|
534
|
-
* @returns {
|
|
549
|
+
* @returns {MessagePort}
|
|
535
550
|
*/
|
|
536
|
-
|
|
537
|
-
const ret = wasm.
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
551
|
+
create_client_port() {
|
|
552
|
+
const ret = wasm.wasmbroker_create_client_port(this.__wbg_ptr);
|
|
553
|
+
if (ret[2]) {
|
|
554
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
555
|
+
}
|
|
556
|
+
return takeFromExternrefTable0(ret[0]);
|
|
557
|
+
}
|
|
558
|
+
constructor() {
|
|
559
|
+
const ret = wasm.wasmbroker_new();
|
|
560
|
+
if (ret[2]) {
|
|
561
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
562
|
+
}
|
|
563
|
+
this.__wbg_ptr = ret[0] >>> 0;
|
|
564
|
+
WasmBrokerFinalization.register(this, this.__wbg_ptr, this);
|
|
565
|
+
return this;
|
|
541
566
|
}
|
|
542
567
|
/**
|
|
568
|
+
* @param {string} username
|
|
569
|
+
* @param {string} password
|
|
543
570
|
* @returns {Promise<void>}
|
|
544
571
|
*/
|
|
545
|
-
|
|
546
|
-
const
|
|
572
|
+
add_user(username, password) {
|
|
573
|
+
const ptr0 = passStringToWasm0(username, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
574
|
+
const len0 = WASM_VECTOR_LEN;
|
|
575
|
+
const ptr1 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
576
|
+
const len1 = WASM_VECTOR_LEN;
|
|
577
|
+
const ret = wasm.wasmbroker_add_user(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
578
|
+
return ret;
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* @param {string} username
|
|
582
|
+
* @returns {Promise<boolean>}
|
|
583
|
+
*/
|
|
584
|
+
has_user(username) {
|
|
585
|
+
const ptr0 = passStringToWasm0(username, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
586
|
+
const len0 = WASM_VECTOR_LEN;
|
|
587
|
+
const ret = wasm.wasmbroker_has_user(this.__wbg_ptr, ptr0, len0);
|
|
547
588
|
return ret;
|
|
548
589
|
}
|
|
549
590
|
}
|
|
@@ -560,12 +601,6 @@ export class WasmBrokerConfig {
|
|
|
560
601
|
const ptr = this.__destroy_into_raw();
|
|
561
602
|
wasm.__wbg_wasmbrokerconfig_free(ptr, 0);
|
|
562
603
|
}
|
|
563
|
-
constructor() {
|
|
564
|
-
const ret = wasm.wasmbrokerconfig_new();
|
|
565
|
-
this.__wbg_ptr = ret >>> 0;
|
|
566
|
-
WasmBrokerConfigFinalization.register(this, this.__wbg_ptr, this);
|
|
567
|
-
return this;
|
|
568
|
-
}
|
|
569
604
|
/**
|
|
570
605
|
* @param {number} value
|
|
571
606
|
*/
|
|
@@ -575,20 +610,20 @@ export class WasmBrokerConfig {
|
|
|
575
610
|
/**
|
|
576
611
|
* @param {number} value
|
|
577
612
|
*/
|
|
578
|
-
set
|
|
579
|
-
wasm.
|
|
613
|
+
set maximum_qos(value) {
|
|
614
|
+
wasm.wasmbrokerconfig_set_maximum_qos(this.__wbg_ptr, value);
|
|
580
615
|
}
|
|
581
616
|
/**
|
|
582
|
-
* @param {
|
|
617
|
+
* @param {boolean} value
|
|
583
618
|
*/
|
|
584
|
-
set
|
|
585
|
-
wasm.
|
|
619
|
+
set allow_anonymous(value) {
|
|
620
|
+
wasm.wasmbrokerconfig_set_allow_anonymous(this.__wbg_ptr, value);
|
|
586
621
|
}
|
|
587
622
|
/**
|
|
588
623
|
* @param {number} value
|
|
589
624
|
*/
|
|
590
|
-
set
|
|
591
|
-
wasm.
|
|
625
|
+
set max_packet_size(value) {
|
|
626
|
+
wasm.wasmbrokerconfig_set_max_packet_size(this.__wbg_ptr, value);
|
|
592
627
|
}
|
|
593
628
|
/**
|
|
594
629
|
* @param {boolean} value
|
|
@@ -599,20 +634,20 @@ export class WasmBrokerConfig {
|
|
|
599
634
|
/**
|
|
600
635
|
* @param {number} value
|
|
601
636
|
*/
|
|
602
|
-
set
|
|
603
|
-
wasm.
|
|
637
|
+
set topic_alias_maximum(value) {
|
|
638
|
+
wasm.wasmbrokerconfig_set_topic_alias_maximum(this.__wbg_ptr, value);
|
|
604
639
|
}
|
|
605
640
|
/**
|
|
606
|
-
* @param {
|
|
641
|
+
* @param {number | null} [value]
|
|
607
642
|
*/
|
|
608
|
-
set
|
|
609
|
-
wasm.
|
|
643
|
+
set server_keep_alive_secs(value) {
|
|
644
|
+
wasm.wasmbrokerconfig_set_server_keep_alive_secs(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
610
645
|
}
|
|
611
646
|
/**
|
|
612
|
-
* @param {
|
|
647
|
+
* @param {number} value
|
|
613
648
|
*/
|
|
614
|
-
set
|
|
615
|
-
wasm.
|
|
649
|
+
set session_expiry_interval_secs(value) {
|
|
650
|
+
wasm.wasmbrokerconfig_set_session_expiry_interval_secs(this.__wbg_ptr, value);
|
|
616
651
|
}
|
|
617
652
|
/**
|
|
618
653
|
* @param {boolean} value
|
|
@@ -621,10 +656,22 @@ export class WasmBrokerConfig {
|
|
|
621
656
|
wasm.wasmbrokerconfig_set_shared_subscription_available(this.__wbg_ptr, value);
|
|
622
657
|
}
|
|
623
658
|
/**
|
|
624
|
-
* @param {
|
|
659
|
+
* @param {boolean} value
|
|
625
660
|
*/
|
|
626
|
-
set
|
|
627
|
-
wasm.
|
|
661
|
+
set wildcard_subscription_available(value) {
|
|
662
|
+
wasm.wasmbrokerconfig_set_wildcard_subscription_available(this.__wbg_ptr, value);
|
|
663
|
+
}
|
|
664
|
+
/**
|
|
665
|
+
* @param {boolean} value
|
|
666
|
+
*/
|
|
667
|
+
set subscription_identifier_available(value) {
|
|
668
|
+
wasm.wasmbrokerconfig_set_subscription_identifier_available(this.__wbg_ptr, value);
|
|
669
|
+
}
|
|
670
|
+
constructor() {
|
|
671
|
+
const ret = wasm.wasmbrokerconfig_new();
|
|
672
|
+
this.__wbg_ptr = ret >>> 0;
|
|
673
|
+
WasmBrokerConfigFinalization.register(this, this.__wbg_ptr, this);
|
|
674
|
+
return this;
|
|
628
675
|
}
|
|
629
676
|
}
|
|
630
677
|
if (Symbol.dispose) WasmBrokerConfig.prototype[Symbol.dispose] = WasmBrokerConfig.prototype.free;
|
|
@@ -640,25 +687,6 @@ export class WasmConnectOptions {
|
|
|
640
687
|
const ptr = this.__destroy_into_raw();
|
|
641
688
|
wasm.__wbg_wasmconnectoptions_free(ptr, 0);
|
|
642
689
|
}
|
|
643
|
-
constructor() {
|
|
644
|
-
const ret = wasm.wasmconnectoptions_new();
|
|
645
|
-
this.__wbg_ptr = ret >>> 0;
|
|
646
|
-
WasmConnectOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
647
|
-
return this;
|
|
648
|
-
}
|
|
649
|
-
/**
|
|
650
|
-
* @returns {number}
|
|
651
|
-
*/
|
|
652
|
-
get keepAlive() {
|
|
653
|
-
const ret = wasm.wasmconnectoptions_keepAlive(this.__wbg_ptr);
|
|
654
|
-
return ret;
|
|
655
|
-
}
|
|
656
|
-
/**
|
|
657
|
-
* @param {number} value
|
|
658
|
-
*/
|
|
659
|
-
set keepAlive(value) {
|
|
660
|
-
wasm.wasmconnectoptions_set_keepAlive(this.__wbg_ptr, value);
|
|
661
|
-
}
|
|
662
690
|
/**
|
|
663
691
|
* @returns {boolean}
|
|
664
692
|
*/
|
|
@@ -666,23 +694,16 @@ export class WasmConnectOptions {
|
|
|
666
694
|
const ret = wasm.wasmconnectoptions_cleanStart(this.__wbg_ptr);
|
|
667
695
|
return ret !== 0;
|
|
668
696
|
}
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
*/
|
|
672
|
-
set cleanStart(value) {
|
|
673
|
-
wasm.wasmconnectoptions_set_cleanStart(this.__wbg_ptr, value);
|
|
697
|
+
clear_will() {
|
|
698
|
+
wasm.wasmconnectoptions_clear_will(this.__wbg_ptr);
|
|
674
699
|
}
|
|
675
700
|
/**
|
|
676
|
-
* @
|
|
701
|
+
* @param {Uint8Array} value
|
|
677
702
|
*/
|
|
678
|
-
|
|
679
|
-
const
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
683
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
684
|
-
}
|
|
685
|
-
return v1;
|
|
703
|
+
set password(value) {
|
|
704
|
+
const ptr0 = passArray8ToWasm0(value, wasm.__wbindgen_malloc);
|
|
705
|
+
const len0 = WASM_VECTOR_LEN;
|
|
706
|
+
wasm.wasmconnectoptions_set_password(this.__wbg_ptr, ptr0, len0);
|
|
686
707
|
}
|
|
687
708
|
/**
|
|
688
709
|
* @param {string | null} [value]
|
|
@@ -693,42 +714,54 @@ export class WasmConnectOptions {
|
|
|
693
714
|
wasm.wasmconnectoptions_set_username(this.__wbg_ptr, ptr0, len0);
|
|
694
715
|
}
|
|
695
716
|
/**
|
|
696
|
-
* @param {
|
|
717
|
+
* @param {number} value
|
|
697
718
|
*/
|
|
698
|
-
set
|
|
699
|
-
|
|
700
|
-
const len0 = WASM_VECTOR_LEN;
|
|
701
|
-
wasm.wasmconnectoptions_set_password(this.__wbg_ptr, ptr0, len0);
|
|
719
|
+
set keepAlive(value) {
|
|
720
|
+
wasm.wasmconnectoptions_set_keepAlive(this.__wbg_ptr, value);
|
|
702
721
|
}
|
|
703
722
|
/**
|
|
704
|
-
* @
|
|
723
|
+
* @returns {number | undefined}
|
|
705
724
|
*/
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
wasm.wasmconnectoptions_set_will(this.__wbg_ptr, ptr0);
|
|
725
|
+
get receiveMaximum() {
|
|
726
|
+
const ret = wasm.wasmconnectoptions_receiveMaximum(this.__wbg_ptr);
|
|
727
|
+
return ret === 0xFFFFFF ? undefined : ret;
|
|
710
728
|
}
|
|
711
|
-
|
|
712
|
-
|
|
729
|
+
/**
|
|
730
|
+
* @param {boolean} value
|
|
731
|
+
*/
|
|
732
|
+
set cleanStart(value) {
|
|
733
|
+
wasm.wasmconnectoptions_set_cleanStart(this.__wbg_ptr, value);
|
|
713
734
|
}
|
|
714
735
|
/**
|
|
715
|
-
* @
|
|
736
|
+
* @param {string} key
|
|
737
|
+
* @param {string} value
|
|
716
738
|
*/
|
|
717
|
-
|
|
718
|
-
const
|
|
719
|
-
|
|
739
|
+
addUserProperty(key, value) {
|
|
740
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
741
|
+
const len0 = WASM_VECTOR_LEN;
|
|
742
|
+
const ptr1 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
743
|
+
const len1 = WASM_VECTOR_LEN;
|
|
744
|
+
wasm.wasmconnectoptions_addUserProperty(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
720
745
|
}
|
|
721
746
|
/**
|
|
722
|
-
* @
|
|
747
|
+
* @returns {number}
|
|
723
748
|
*/
|
|
724
|
-
|
|
725
|
-
wasm.
|
|
749
|
+
get protocolVersion() {
|
|
750
|
+
const ret = wasm.wasmconnectoptions_protocolVersion(this.__wbg_ptr);
|
|
751
|
+
return ret;
|
|
726
752
|
}
|
|
727
753
|
/**
|
|
728
754
|
* @returns {number | undefined}
|
|
729
755
|
*/
|
|
730
|
-
get
|
|
731
|
-
const ret = wasm.
|
|
756
|
+
get maximumPacketSize() {
|
|
757
|
+
const ret = wasm.wasmconnectoptions_maximumPacketSize(this.__wbg_ptr);
|
|
758
|
+
return ret === 0x100000001 ? undefined : ret;
|
|
759
|
+
}
|
|
760
|
+
/**
|
|
761
|
+
* @returns {number | undefined}
|
|
762
|
+
*/
|
|
763
|
+
get topicAliasMaximum() {
|
|
764
|
+
const ret = wasm.wasmconnectoptions_topicAliasMaximum(this.__wbg_ptr);
|
|
732
765
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
733
766
|
}
|
|
734
767
|
/**
|
|
@@ -737,11 +770,32 @@ export class WasmConnectOptions {
|
|
|
737
770
|
set receiveMaximum(value) {
|
|
738
771
|
wasm.wasmconnectoptions_set_receiveMaximum(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value);
|
|
739
772
|
}
|
|
773
|
+
clearUserProperties() {
|
|
774
|
+
wasm.wasmconnectoptions_clearUserProperties(this.__wbg_ptr);
|
|
775
|
+
}
|
|
776
|
+
/**
|
|
777
|
+
* @param {number} value
|
|
778
|
+
*/
|
|
779
|
+
set protocolVersion(value) {
|
|
780
|
+
wasm.wasmconnectoptions_set_protocolVersion(this.__wbg_ptr, value);
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
* @returns {string | undefined}
|
|
784
|
+
*/
|
|
785
|
+
get authenticationMethod() {
|
|
786
|
+
const ret = wasm.wasmconnectoptions_authenticationMethod(this.__wbg_ptr);
|
|
787
|
+
let v1;
|
|
788
|
+
if (ret[0] !== 0) {
|
|
789
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
790
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
791
|
+
}
|
|
792
|
+
return v1;
|
|
793
|
+
}
|
|
740
794
|
/**
|
|
741
795
|
* @returns {number | undefined}
|
|
742
796
|
*/
|
|
743
|
-
get
|
|
744
|
-
const ret = wasm.
|
|
797
|
+
get sessionExpiryInterval() {
|
|
798
|
+
const ret = wasm.wasmconnectoptions_sessionExpiryInterval(this.__wbg_ptr);
|
|
745
799
|
return ret === 0x100000001 ? undefined : ret;
|
|
746
800
|
}
|
|
747
801
|
/**
|
|
@@ -750,13 +804,6 @@ export class WasmConnectOptions {
|
|
|
750
804
|
set maximumPacketSize(value) {
|
|
751
805
|
wasm.wasmconnectoptions_set_maximumPacketSize(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
752
806
|
}
|
|
753
|
-
/**
|
|
754
|
-
* @returns {number | undefined}
|
|
755
|
-
*/
|
|
756
|
-
get topicAliasMaximum() {
|
|
757
|
-
const ret = wasm.wasmconnectoptions_topicAliasMaximum(this.__wbg_ptr);
|
|
758
|
-
return ret === 0xFFFFFF ? undefined : ret;
|
|
759
|
-
}
|
|
760
807
|
/**
|
|
761
808
|
* @param {number | null} [value]
|
|
762
809
|
*/
|
|
@@ -764,17 +811,20 @@ export class WasmConnectOptions {
|
|
|
764
811
|
wasm.wasmconnectoptions_set_topicAliasMaximum(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value);
|
|
765
812
|
}
|
|
766
813
|
/**
|
|
767
|
-
* @
|
|
814
|
+
* @param {Uint8Array} value
|
|
768
815
|
*/
|
|
769
|
-
|
|
770
|
-
const
|
|
771
|
-
|
|
816
|
+
set authenticationData(value) {
|
|
817
|
+
const ptr0 = passArray8ToWasm0(value, wasm.__wbindgen_malloc);
|
|
818
|
+
const len0 = WASM_VECTOR_LEN;
|
|
819
|
+
wasm.wasmconnectoptions_set_authenticationData(this.__wbg_ptr, ptr0, len0);
|
|
772
820
|
}
|
|
773
821
|
/**
|
|
774
|
-
* @param {
|
|
822
|
+
* @param {string | null} [value]
|
|
775
823
|
*/
|
|
776
|
-
set
|
|
777
|
-
|
|
824
|
+
set authenticationMethod(value) {
|
|
825
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
826
|
+
var len0 = WASM_VECTOR_LEN;
|
|
827
|
+
wasm.wasmconnectoptions_set_authenticationMethod(this.__wbg_ptr, ptr0, len0);
|
|
778
828
|
}
|
|
779
829
|
/**
|
|
780
830
|
* @returns {boolean | undefined}
|
|
@@ -783,17 +833,50 @@ export class WasmConnectOptions {
|
|
|
783
833
|
const ret = wasm.wasmconnectoptions_requestProblemInformation(this.__wbg_ptr);
|
|
784
834
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
785
835
|
}
|
|
836
|
+
/**
|
|
837
|
+
* @param {number | null} [value]
|
|
838
|
+
*/
|
|
839
|
+
set sessionExpiryInterval(value) {
|
|
840
|
+
wasm.wasmbrokerconfig_set_server_keep_alive_secs(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
841
|
+
}
|
|
842
|
+
/**
|
|
843
|
+
* @returns {boolean | undefined}
|
|
844
|
+
*/
|
|
845
|
+
get requestResponseInformation() {
|
|
846
|
+
const ret = wasm.wasmconnectoptions_requestResponseInformation(this.__wbg_ptr);
|
|
847
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
848
|
+
}
|
|
786
849
|
/**
|
|
787
850
|
* @param {boolean | null} [value]
|
|
788
851
|
*/
|
|
789
852
|
set requestProblemInformation(value) {
|
|
790
853
|
wasm.wasmconnectoptions_set_requestProblemInformation(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
791
854
|
}
|
|
855
|
+
/**
|
|
856
|
+
* @param {boolean | null} [value]
|
|
857
|
+
*/
|
|
858
|
+
set requestResponseInformation(value) {
|
|
859
|
+
wasm.wasmconnectoptions_set_requestResponseInformation(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
860
|
+
}
|
|
861
|
+
constructor() {
|
|
862
|
+
const ret = wasm.wasmconnectoptions_new();
|
|
863
|
+
this.__wbg_ptr = ret >>> 0;
|
|
864
|
+
WasmConnectOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
865
|
+
return this;
|
|
866
|
+
}
|
|
867
|
+
/**
|
|
868
|
+
* @param {WasmWillMessage} will
|
|
869
|
+
*/
|
|
870
|
+
set_will(will) {
|
|
871
|
+
_assertClass(will, WasmWillMessage);
|
|
872
|
+
var ptr0 = will.__destroy_into_raw();
|
|
873
|
+
wasm.wasmconnectoptions_set_will(this.__wbg_ptr, ptr0);
|
|
874
|
+
}
|
|
792
875
|
/**
|
|
793
876
|
* @returns {string | undefined}
|
|
794
877
|
*/
|
|
795
|
-
get
|
|
796
|
-
const ret = wasm.
|
|
878
|
+
get username() {
|
|
879
|
+
const ret = wasm.wasmconnectoptions_username(this.__wbg_ptr);
|
|
797
880
|
let v1;
|
|
798
881
|
if (ret[0] !== 0) {
|
|
799
882
|
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
@@ -802,138 +885,143 @@ export class WasmConnectOptions {
|
|
|
802
885
|
return v1;
|
|
803
886
|
}
|
|
804
887
|
/**
|
|
805
|
-
* @
|
|
806
|
-
*/
|
|
807
|
-
set authenticationMethod(value) {
|
|
808
|
-
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
809
|
-
var len0 = WASM_VECTOR_LEN;
|
|
810
|
-
wasm.wasmconnectoptions_set_authenticationMethod(this.__wbg_ptr, ptr0, len0);
|
|
811
|
-
}
|
|
812
|
-
/**
|
|
813
|
-
* @param {Uint8Array} value
|
|
814
|
-
*/
|
|
815
|
-
set authenticationData(value) {
|
|
816
|
-
const ptr0 = passArray8ToWasm0(value, wasm.__wbindgen_malloc);
|
|
817
|
-
const len0 = WASM_VECTOR_LEN;
|
|
818
|
-
wasm.wasmconnectoptions_set_authenticationData(this.__wbg_ptr, ptr0, len0);
|
|
819
|
-
}
|
|
820
|
-
/**
|
|
821
|
-
* @param {string} key
|
|
822
|
-
* @param {string} value
|
|
888
|
+
* @returns {number}
|
|
823
889
|
*/
|
|
824
|
-
|
|
825
|
-
const
|
|
826
|
-
|
|
827
|
-
const ptr1 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
828
|
-
const len1 = WASM_VECTOR_LEN;
|
|
829
|
-
wasm.wasmconnectoptions_addUserProperty(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
830
|
-
}
|
|
831
|
-
clearUserProperties() {
|
|
832
|
-
wasm.wasmconnectoptions_clearUserProperties(this.__wbg_ptr);
|
|
890
|
+
get keepAlive() {
|
|
891
|
+
const ret = wasm.wasmconnectoptions_keepAlive(this.__wbg_ptr);
|
|
892
|
+
return ret;
|
|
833
893
|
}
|
|
834
894
|
}
|
|
835
895
|
if (Symbol.dispose) WasmConnectOptions.prototype[Symbol.dispose] = WasmConnectOptions.prototype.free;
|
|
836
896
|
|
|
837
|
-
export class
|
|
897
|
+
export class WasmMessageProperties {
|
|
898
|
+
static __wrap(ptr) {
|
|
899
|
+
ptr = ptr >>> 0;
|
|
900
|
+
const obj = Object.create(WasmMessageProperties.prototype);
|
|
901
|
+
obj.__wbg_ptr = ptr;
|
|
902
|
+
WasmMessagePropertiesFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
903
|
+
return obj;
|
|
904
|
+
}
|
|
838
905
|
__destroy_into_raw() {
|
|
839
906
|
const ptr = this.__wbg_ptr;
|
|
840
907
|
this.__wbg_ptr = 0;
|
|
841
|
-
|
|
908
|
+
WasmMessagePropertiesFinalization.unregister(this);
|
|
842
909
|
return ptr;
|
|
843
910
|
}
|
|
844
911
|
free() {
|
|
845
912
|
const ptr = this.__destroy_into_raw();
|
|
846
|
-
wasm.
|
|
913
|
+
wasm.__wbg_wasmmessageproperties_free(ptr, 0);
|
|
847
914
|
}
|
|
848
915
|
/**
|
|
849
|
-
* @
|
|
916
|
+
* @returns {string | undefined}
|
|
850
917
|
*/
|
|
851
|
-
|
|
852
|
-
const
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
918
|
+
get contentType() {
|
|
919
|
+
const ret = wasm.wasmmessageproperties_contentType(this.__wbg_ptr);
|
|
920
|
+
let v1;
|
|
921
|
+
if (ret[0] !== 0) {
|
|
922
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
923
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
924
|
+
}
|
|
925
|
+
return v1;
|
|
858
926
|
}
|
|
859
927
|
/**
|
|
860
|
-
* @
|
|
861
|
-
* @returns {Promise<void>}
|
|
928
|
+
* @returns {string | undefined}
|
|
862
929
|
*/
|
|
863
|
-
|
|
864
|
-
const
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
930
|
+
get responseTopic() {
|
|
931
|
+
const ret = wasm.wasmmessageproperties_responseTopic(this.__wbg_ptr);
|
|
932
|
+
let v1;
|
|
933
|
+
if (ret[0] !== 0) {
|
|
934
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
935
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
936
|
+
}
|
|
937
|
+
return v1;
|
|
868
938
|
}
|
|
869
939
|
/**
|
|
870
|
-
* @
|
|
871
|
-
* @param {WasmConnectOptions} config
|
|
872
|
-
* @returns {Promise<void>}
|
|
940
|
+
* @returns {Uint8Array | undefined}
|
|
873
941
|
*/
|
|
874
|
-
|
|
875
|
-
const
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
942
|
+
get correlationData() {
|
|
943
|
+
const ret = wasm.wasmmessageproperties_correlationData(this.__wbg_ptr);
|
|
944
|
+
let v1;
|
|
945
|
+
if (ret[0] !== 0) {
|
|
946
|
+
v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
947
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
948
|
+
}
|
|
949
|
+
return v1;
|
|
880
950
|
}
|
|
881
951
|
/**
|
|
882
|
-
* @
|
|
883
|
-
* @returns {Promise<void>}
|
|
952
|
+
* @returns {Array<any>}
|
|
884
953
|
*/
|
|
885
|
-
|
|
886
|
-
const ret = wasm.
|
|
954
|
+
getUserProperties() {
|
|
955
|
+
const ret = wasm.wasmmessageproperties_getUserProperties(this.__wbg_ptr);
|
|
887
956
|
return ret;
|
|
888
957
|
}
|
|
889
958
|
/**
|
|
890
|
-
* @
|
|
891
|
-
* @param {WasmConnectOptions} config
|
|
892
|
-
* @returns {Promise<void>}
|
|
959
|
+
* @returns {number | undefined}
|
|
893
960
|
*/
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
return ret;
|
|
961
|
+
get messageExpiryInterval() {
|
|
962
|
+
const ret = wasm.wasmconnectoptions_sessionExpiryInterval(this.__wbg_ptr);
|
|
963
|
+
return ret === 0x100000001 ? undefined : ret;
|
|
898
964
|
}
|
|
899
965
|
/**
|
|
900
|
-
* @
|
|
901
|
-
* @returns {Promise<void>}
|
|
966
|
+
* @returns {boolean | undefined}
|
|
902
967
|
*/
|
|
903
|
-
|
|
904
|
-
const
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
968
|
+
get payloadFormatIndicator() {
|
|
969
|
+
const ret = wasm.wasmmessageproperties_payloadFormatIndicator(this.__wbg_ptr);
|
|
970
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
971
|
+
}
|
|
972
|
+
/**
|
|
973
|
+
* @returns {Uint32Array}
|
|
974
|
+
*/
|
|
975
|
+
get subscriptionIdentifiers() {
|
|
976
|
+
const ret = wasm.wasmmessageproperties_subscriptionIdentifiers(this.__wbg_ptr);
|
|
977
|
+
var v1 = getArrayU32FromWasm0(ret[0], ret[1]).slice();
|
|
978
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
979
|
+
return v1;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
if (Symbol.dispose) WasmMessageProperties.prototype[Symbol.dispose] = WasmMessageProperties.prototype.free;
|
|
983
|
+
|
|
984
|
+
export class WasmMqttClient {
|
|
985
|
+
__destroy_into_raw() {
|
|
986
|
+
const ptr = this.__wbg_ptr;
|
|
987
|
+
this.__wbg_ptr = 0;
|
|
988
|
+
WasmMqttClientFinalization.unregister(this);
|
|
989
|
+
return ptr;
|
|
990
|
+
}
|
|
991
|
+
free() {
|
|
992
|
+
const ptr = this.__destroy_into_raw();
|
|
993
|
+
wasm.__wbg_wasmmqttclient_free(ptr, 0);
|
|
908
994
|
}
|
|
909
995
|
/**
|
|
910
|
-
* @param {string} topic
|
|
911
|
-
* @param {Uint8Array} payload
|
|
912
996
|
* @returns {Promise<void>}
|
|
913
997
|
*/
|
|
914
|
-
|
|
915
|
-
const
|
|
916
|
-
const len0 = WASM_VECTOR_LEN;
|
|
917
|
-
const ptr1 = passArray8ToWasm0(payload, wasm.__wbindgen_malloc);
|
|
918
|
-
const len1 = WASM_VECTOR_LEN;
|
|
919
|
-
const ret = wasm.wasmmqttclient_publish(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
998
|
+
disconnect() {
|
|
999
|
+
const ret = wasm.wasmmqttclient_disconnect(this.__wbg_ptr);
|
|
920
1000
|
return ret;
|
|
921
1001
|
}
|
|
1002
|
+
/**
|
|
1003
|
+
* @param {Function} callback
|
|
1004
|
+
*/
|
|
1005
|
+
on_connect(callback) {
|
|
1006
|
+
wasm.wasmmqttclient_on_connect(this.__wbg_ptr, callback);
|
|
1007
|
+
}
|
|
922
1008
|
/**
|
|
923
1009
|
* @param {string} topic
|
|
924
|
-
* @
|
|
925
|
-
* @param {WasmPublishOptions} options
|
|
926
|
-
* @returns {Promise<void>}
|
|
1010
|
+
* @returns {Promise<number>}
|
|
927
1011
|
*/
|
|
928
|
-
|
|
1012
|
+
unsubscribe(topic) {
|
|
929
1013
|
const ptr0 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
930
1014
|
const len0 = WASM_VECTOR_LEN;
|
|
931
|
-
const
|
|
932
|
-
const len1 = WASM_VECTOR_LEN;
|
|
933
|
-
_assertClass(options, WasmPublishOptions);
|
|
934
|
-
const ret = wasm.wasmmqttclient_publish_with_options(this.__wbg_ptr, ptr0, len0, ptr1, len1, options.__wbg_ptr);
|
|
1015
|
+
const ret = wasm.wasmmqttclient_unsubscribe(this.__wbg_ptr, ptr0, len0);
|
|
935
1016
|
return ret;
|
|
936
1017
|
}
|
|
1018
|
+
/**
|
|
1019
|
+
* @returns {boolean}
|
|
1020
|
+
*/
|
|
1021
|
+
is_connected() {
|
|
1022
|
+
const ret = wasm.wasmmqttclient_is_connected(this.__wbg_ptr);
|
|
1023
|
+
return ret !== 0;
|
|
1024
|
+
}
|
|
937
1025
|
/**
|
|
938
1026
|
* @param {string} topic
|
|
939
1027
|
* @param {Uint8Array} payload
|
|
@@ -962,14 +1050,61 @@ export class WasmMqttClient {
|
|
|
962
1050
|
const ret = wasm.wasmmqttclient_publish_qos2(this.__wbg_ptr, ptr0, len0, ptr1, len1, callback);
|
|
963
1051
|
return ret;
|
|
964
1052
|
}
|
|
1053
|
+
/**
|
|
1054
|
+
* @param {Uint8Array} auth_data
|
|
1055
|
+
* @returns {Promise<void>}
|
|
1056
|
+
*/
|
|
1057
|
+
respond_auth(auth_data) {
|
|
1058
|
+
const ptr0 = passArray8ToWasm0(auth_data, wasm.__wbindgen_malloc);
|
|
1059
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1060
|
+
const ret = wasm.wasmmqttclient_respond_auth(this.__wbg_ptr, ptr0, len0);
|
|
1061
|
+
return ret;
|
|
1062
|
+
}
|
|
1063
|
+
/**
|
|
1064
|
+
* @param {Function} callback
|
|
1065
|
+
*/
|
|
1066
|
+
on_disconnect(callback) {
|
|
1067
|
+
wasm.wasmmqttclient_on_disconnect(this.__wbg_ptr, callback);
|
|
1068
|
+
}
|
|
1069
|
+
/**
|
|
1070
|
+
* @param {Function} callback
|
|
1071
|
+
*/
|
|
1072
|
+
on_auth_challenge(callback) {
|
|
1073
|
+
wasm.wasmmqttclient_on_auth_challenge(this.__wbg_ptr, callback);
|
|
1074
|
+
}
|
|
1075
|
+
/**
|
|
1076
|
+
* @param {MessagePort} port
|
|
1077
|
+
* @returns {Promise<void>}
|
|
1078
|
+
*/
|
|
1079
|
+
connect_message_port(port) {
|
|
1080
|
+
const ret = wasm.wasmmqttclient_connect_message_port(this.__wbg_ptr, port);
|
|
1081
|
+
return ret;
|
|
1082
|
+
}
|
|
1083
|
+
/**
|
|
1084
|
+
* @param {string} url
|
|
1085
|
+
* @param {WasmConnectOptions} config
|
|
1086
|
+
* @returns {Promise<void>}
|
|
1087
|
+
*/
|
|
1088
|
+
connect_with_options(url, config) {
|
|
1089
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1090
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1091
|
+
_assertClass(config, WasmConnectOptions);
|
|
1092
|
+
const ret = wasm.wasmmqttclient_connect_with_options(this.__wbg_ptr, ptr0, len0, config.__wbg_ptr);
|
|
1093
|
+
return ret;
|
|
1094
|
+
}
|
|
965
1095
|
/**
|
|
966
1096
|
* @param {string} topic
|
|
967
|
-
* @
|
|
1097
|
+
* @param {Uint8Array} payload
|
|
1098
|
+
* @param {WasmPublishOptions} options
|
|
1099
|
+
* @returns {Promise<void>}
|
|
968
1100
|
*/
|
|
969
|
-
|
|
1101
|
+
publish_with_options(topic, payload, options) {
|
|
970
1102
|
const ptr0 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
971
1103
|
const len0 = WASM_VECTOR_LEN;
|
|
972
|
-
const
|
|
1104
|
+
const ptr1 = passArray8ToWasm0(payload, wasm.__wbindgen_malloc);
|
|
1105
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1106
|
+
_assertClass(options, WasmPublishOptions);
|
|
1107
|
+
const ret = wasm.wasmmqttclient_publish_with_options(this.__wbg_ptr, ptr0, len0, ptr1, len1, options.__wbg_ptr);
|
|
973
1108
|
return ret;
|
|
974
1109
|
}
|
|
975
1110
|
/**
|
|
@@ -997,40 +1132,58 @@ export class WasmMqttClient {
|
|
|
997
1132
|
return ret;
|
|
998
1133
|
}
|
|
999
1134
|
/**
|
|
1000
|
-
* @param {string}
|
|
1001
|
-
* @returns {Promise<
|
|
1135
|
+
* @param {string} channel_name
|
|
1136
|
+
* @returns {Promise<void>}
|
|
1002
1137
|
*/
|
|
1003
|
-
|
|
1004
|
-
const ptr0 = passStringToWasm0(
|
|
1138
|
+
connect_broadcast_channel(channel_name) {
|
|
1139
|
+
const ptr0 = passStringToWasm0(channel_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1005
1140
|
const len0 = WASM_VECTOR_LEN;
|
|
1006
|
-
const ret = wasm.
|
|
1141
|
+
const ret = wasm.wasmmqttclient_connect_broadcast_channel(this.__wbg_ptr, ptr0, len0);
|
|
1007
1142
|
return ret;
|
|
1008
1143
|
}
|
|
1009
1144
|
/**
|
|
1145
|
+
* @param {MessagePort} port
|
|
1146
|
+
* @param {WasmConnectOptions} config
|
|
1010
1147
|
* @returns {Promise<void>}
|
|
1011
1148
|
*/
|
|
1012
|
-
|
|
1013
|
-
|
|
1149
|
+
connect_message_port_with_options(port, config) {
|
|
1150
|
+
_assertClass(config, WasmConnectOptions);
|
|
1151
|
+
const ret = wasm.wasmmqttclient_connect_message_port_with_options(this.__wbg_ptr, port, config.__wbg_ptr);
|
|
1014
1152
|
return ret;
|
|
1015
1153
|
}
|
|
1016
1154
|
/**
|
|
1017
|
-
* @
|
|
1155
|
+
* @param {string} client_id
|
|
1018
1156
|
*/
|
|
1019
|
-
|
|
1020
|
-
const
|
|
1021
|
-
|
|
1157
|
+
constructor(client_id) {
|
|
1158
|
+
const ptr0 = passStringToWasm0(client_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1159
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1160
|
+
const ret = wasm.wasmmqttclient_new(ptr0, len0);
|
|
1161
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1162
|
+
WasmMqttClientFinalization.register(this, this.__wbg_ptr, this);
|
|
1163
|
+
return this;
|
|
1022
1164
|
}
|
|
1023
1165
|
/**
|
|
1024
|
-
* @param {
|
|
1166
|
+
* @param {string} url
|
|
1167
|
+
* @returns {Promise<void>}
|
|
1025
1168
|
*/
|
|
1026
|
-
|
|
1027
|
-
wasm.
|
|
1169
|
+
connect(url) {
|
|
1170
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1171
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1172
|
+
const ret = wasm.wasmmqttclient_connect(this.__wbg_ptr, ptr0, len0);
|
|
1173
|
+
return ret;
|
|
1028
1174
|
}
|
|
1029
1175
|
/**
|
|
1030
|
-
* @param {
|
|
1176
|
+
* @param {string} topic
|
|
1177
|
+
* @param {Uint8Array} payload
|
|
1178
|
+
* @returns {Promise<void>}
|
|
1031
1179
|
*/
|
|
1032
|
-
|
|
1033
|
-
wasm.
|
|
1180
|
+
publish(topic, payload) {
|
|
1181
|
+
const ptr0 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1182
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1183
|
+
const ptr1 = passArray8ToWasm0(payload, wasm.__wbindgen_malloc);
|
|
1184
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1185
|
+
const ret = wasm.wasmmqttclient_publish(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1186
|
+
return ret;
|
|
1034
1187
|
}
|
|
1035
1188
|
/**
|
|
1036
1189
|
* @param {Function} callback
|
|
@@ -1039,19 +1192,13 @@ export class WasmMqttClient {
|
|
|
1039
1192
|
wasm.wasmmqttclient_on_error(this.__wbg_ptr, callback);
|
|
1040
1193
|
}
|
|
1041
1194
|
/**
|
|
1042
|
-
* @param {
|
|
1043
|
-
|
|
1044
|
-
on_auth_challenge(callback) {
|
|
1045
|
-
wasm.wasmmqttclient_on_auth_challenge(this.__wbg_ptr, callback);
|
|
1046
|
-
}
|
|
1047
|
-
/**
|
|
1048
|
-
* @param {Uint8Array} auth_data
|
|
1049
|
-
* @returns {Promise<void>}
|
|
1195
|
+
* @param {string} topic
|
|
1196
|
+
* @returns {Promise<number>}
|
|
1050
1197
|
*/
|
|
1051
|
-
|
|
1052
|
-
const ptr0 =
|
|
1198
|
+
subscribe(topic) {
|
|
1199
|
+
const ptr0 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1053
1200
|
const len0 = WASM_VECTOR_LEN;
|
|
1054
|
-
const ret = wasm.
|
|
1201
|
+
const ret = wasm.wasmmqttclient_subscribe(this.__wbg_ptr, ptr0, len0);
|
|
1055
1202
|
return ret;
|
|
1056
1203
|
}
|
|
1057
1204
|
}
|
|
@@ -1068,64 +1215,12 @@ export class WasmPublishOptions {
|
|
|
1068
1215
|
const ptr = this.__destroy_into_raw();
|
|
1069
1216
|
wasm.__wbg_wasmpublishoptions_free(ptr, 0);
|
|
1070
1217
|
}
|
|
1071
|
-
constructor() {
|
|
1072
|
-
const ret = wasm.wasmpublishoptions_new();
|
|
1073
|
-
this.__wbg_ptr = ret >>> 0;
|
|
1074
|
-
WasmPublishOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
1075
|
-
return this;
|
|
1076
|
-
}
|
|
1077
|
-
/**
|
|
1078
|
-
* @returns {number}
|
|
1079
|
-
*/
|
|
1080
|
-
get qos() {
|
|
1081
|
-
const ret = wasm.wasmpublishoptions_qos(this.__wbg_ptr);
|
|
1082
|
-
return ret;
|
|
1083
|
-
}
|
|
1084
|
-
/**
|
|
1085
|
-
* @param {number} value
|
|
1086
|
-
*/
|
|
1087
|
-
set qos(value) {
|
|
1088
|
-
wasm.wasmpublishoptions_set_qos(this.__wbg_ptr, value);
|
|
1089
|
-
}
|
|
1090
|
-
/**
|
|
1091
|
-
* @returns {boolean}
|
|
1092
|
-
*/
|
|
1093
|
-
get retain() {
|
|
1094
|
-
const ret = wasm.wasmpublishoptions_retain(this.__wbg_ptr);
|
|
1095
|
-
return ret !== 0;
|
|
1096
|
-
}
|
|
1097
1218
|
/**
|
|
1098
1219
|
* @param {boolean} value
|
|
1099
1220
|
*/
|
|
1100
1221
|
set retain(value) {
|
|
1101
1222
|
wasm.wasmpublishoptions_set_retain(this.__wbg_ptr, value);
|
|
1102
1223
|
}
|
|
1103
|
-
/**
|
|
1104
|
-
* @returns {boolean | undefined}
|
|
1105
|
-
*/
|
|
1106
|
-
get payloadFormatIndicator() {
|
|
1107
|
-
const ret = wasm.wasmpublishoptions_payloadFormatIndicator(this.__wbg_ptr);
|
|
1108
|
-
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
1109
|
-
}
|
|
1110
|
-
/**
|
|
1111
|
-
* @param {boolean | null} [value]
|
|
1112
|
-
*/
|
|
1113
|
-
set payloadFormatIndicator(value) {
|
|
1114
|
-
wasm.wasmpublishoptions_set_payloadFormatIndicator(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1115
|
-
}
|
|
1116
|
-
/**
|
|
1117
|
-
* @returns {number | undefined}
|
|
1118
|
-
*/
|
|
1119
|
-
get messageExpiryInterval() {
|
|
1120
|
-
const ret = wasm.wasmconnectoptions_sessionExpiryInterval(this.__wbg_ptr);
|
|
1121
|
-
return ret === 0x100000001 ? undefined : ret;
|
|
1122
|
-
}
|
|
1123
|
-
/**
|
|
1124
|
-
* @param {number | null} [value]
|
|
1125
|
-
*/
|
|
1126
|
-
set messageExpiryInterval(value) {
|
|
1127
|
-
wasm.wasmbrokerconfig_set_server_keep_alive_secs(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
1128
|
-
}
|
|
1129
1224
|
/**
|
|
1130
1225
|
* @returns {number | undefined}
|
|
1131
1226
|
*/
|
|
@@ -1134,10 +1229,16 @@ export class WasmPublishOptions {
|
|
|
1134
1229
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
1135
1230
|
}
|
|
1136
1231
|
/**
|
|
1137
|
-
* @
|
|
1232
|
+
* @returns {string | undefined}
|
|
1138
1233
|
*/
|
|
1139
|
-
|
|
1140
|
-
wasm.
|
|
1234
|
+
get contentType() {
|
|
1235
|
+
const ret = wasm.wasmpublishoptions_contentType(this.__wbg_ptr);
|
|
1236
|
+
let v1;
|
|
1237
|
+
if (ret[0] !== 0) {
|
|
1238
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
1239
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1240
|
+
}
|
|
1241
|
+
return v1;
|
|
1141
1242
|
}
|
|
1142
1243
|
/**
|
|
1143
1244
|
* @returns {string | undefined}
|
|
@@ -1151,6 +1252,31 @@ export class WasmPublishOptions {
|
|
|
1151
1252
|
}
|
|
1152
1253
|
return v1;
|
|
1153
1254
|
}
|
|
1255
|
+
/**
|
|
1256
|
+
* @param {number | null} [value]
|
|
1257
|
+
*/
|
|
1258
|
+
set topicAlias(value) {
|
|
1259
|
+
wasm.wasmpublishoptions_set_topicAlias(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value);
|
|
1260
|
+
}
|
|
1261
|
+
/**
|
|
1262
|
+
* @param {string} key
|
|
1263
|
+
* @param {string} value
|
|
1264
|
+
*/
|
|
1265
|
+
addUserProperty(key, value) {
|
|
1266
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1267
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1268
|
+
const ptr1 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1269
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1270
|
+
wasm.wasmpublishoptions_addUserProperty(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1271
|
+
}
|
|
1272
|
+
/**
|
|
1273
|
+
* @param {string | null} [value]
|
|
1274
|
+
*/
|
|
1275
|
+
set contentType(value) {
|
|
1276
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1277
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1278
|
+
wasm.wasmpublishoptions_set_contentType(this.__wbg_ptr, ptr0, len0);
|
|
1279
|
+
}
|
|
1154
1280
|
/**
|
|
1155
1281
|
* @param {string | null} [value]
|
|
1156
1282
|
*/
|
|
@@ -1159,6 +1285,9 @@ export class WasmPublishOptions {
|
|
|
1159
1285
|
var len0 = WASM_VECTOR_LEN;
|
|
1160
1286
|
wasm.wasmpublishoptions_set_responseTopic(this.__wbg_ptr, ptr0, len0);
|
|
1161
1287
|
}
|
|
1288
|
+
clearUserProperties() {
|
|
1289
|
+
wasm.wasmpublishoptions_clearUserProperties(this.__wbg_ptr);
|
|
1290
|
+
}
|
|
1162
1291
|
/**
|
|
1163
1292
|
* @param {Uint8Array} value
|
|
1164
1293
|
*/
|
|
@@ -1168,78 +1297,70 @@ export class WasmPublishOptions {
|
|
|
1168
1297
|
wasm.wasmpublishoptions_set_correlationData(this.__wbg_ptr, ptr0, len0);
|
|
1169
1298
|
}
|
|
1170
1299
|
/**
|
|
1171
|
-
* @returns {
|
|
1300
|
+
* @returns {number | undefined}
|
|
1172
1301
|
*/
|
|
1173
|
-
get
|
|
1174
|
-
const ret = wasm.
|
|
1175
|
-
|
|
1176
|
-
if (ret[0] !== 0) {
|
|
1177
|
-
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
1178
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1179
|
-
}
|
|
1180
|
-
return v1;
|
|
1302
|
+
get messageExpiryInterval() {
|
|
1303
|
+
const ret = wasm.wasmconnectoptions_sessionExpiryInterval(this.__wbg_ptr);
|
|
1304
|
+
return ret === 0x100000001 ? undefined : ret;
|
|
1181
1305
|
}
|
|
1182
1306
|
/**
|
|
1183
|
-
* @
|
|
1307
|
+
* @returns {boolean | undefined}
|
|
1184
1308
|
*/
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
wasm.wasmpublishoptions_set_contentType(this.__wbg_ptr, ptr0, len0);
|
|
1309
|
+
get payloadFormatIndicator() {
|
|
1310
|
+
const ret = wasm.wasmpublishoptions_payloadFormatIndicator(this.__wbg_ptr);
|
|
1311
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
1189
1312
|
}
|
|
1190
1313
|
/**
|
|
1191
|
-
* @param {
|
|
1192
|
-
* @param {string} value
|
|
1314
|
+
* @param {number | null} [value]
|
|
1193
1315
|
*/
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1197
|
-
const ptr1 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1198
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1199
|
-
wasm.wasmpublishoptions_addUserProperty(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1200
|
-
}
|
|
1201
|
-
clearUserProperties() {
|
|
1202
|
-
wasm.wasmpublishoptions_clearUserProperties(this.__wbg_ptr);
|
|
1203
|
-
}
|
|
1204
|
-
}
|
|
1205
|
-
if (Symbol.dispose) WasmPublishOptions.prototype[Symbol.dispose] = WasmPublishOptions.prototype.free;
|
|
1206
|
-
|
|
1207
|
-
export class WasmSubscribeOptions {
|
|
1208
|
-
__destroy_into_raw() {
|
|
1209
|
-
const ptr = this.__wbg_ptr;
|
|
1210
|
-
this.__wbg_ptr = 0;
|
|
1211
|
-
WasmSubscribeOptionsFinalization.unregister(this);
|
|
1212
|
-
return ptr;
|
|
1316
|
+
set messageExpiryInterval(value) {
|
|
1317
|
+
wasm.wasmbrokerconfig_set_server_keep_alive_secs(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
1213
1318
|
}
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1319
|
+
/**
|
|
1320
|
+
* @param {boolean | null} [value]
|
|
1321
|
+
*/
|
|
1322
|
+
set payloadFormatIndicator(value) {
|
|
1323
|
+
wasm.wasmpublishoptions_set_payloadFormatIndicator(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1217
1324
|
}
|
|
1218
1325
|
constructor() {
|
|
1219
|
-
const ret = wasm.
|
|
1326
|
+
const ret = wasm.wasmpublishoptions_new();
|
|
1220
1327
|
this.__wbg_ptr = ret >>> 0;
|
|
1221
|
-
|
|
1328
|
+
WasmPublishOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
1222
1329
|
return this;
|
|
1223
1330
|
}
|
|
1224
1331
|
/**
|
|
1225
1332
|
* @returns {number}
|
|
1226
1333
|
*/
|
|
1227
1334
|
get qos() {
|
|
1228
|
-
const ret = wasm.
|
|
1335
|
+
const ret = wasm.wasmpublishoptions_qos(this.__wbg_ptr);
|
|
1229
1336
|
return ret;
|
|
1230
1337
|
}
|
|
1231
1338
|
/**
|
|
1232
|
-
* @
|
|
1339
|
+
* @returns {boolean}
|
|
1233
1340
|
*/
|
|
1234
|
-
|
|
1235
|
-
wasm.
|
|
1341
|
+
get retain() {
|
|
1342
|
+
const ret = wasm.wasmpublishoptions_retain(this.__wbg_ptr);
|
|
1343
|
+
return ret !== 0;
|
|
1236
1344
|
}
|
|
1237
1345
|
/**
|
|
1238
|
-
* @
|
|
1346
|
+
* @param {number} value
|
|
1239
1347
|
*/
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1348
|
+
set qos(value) {
|
|
1349
|
+
wasm.wasmpublishoptions_set_qos(this.__wbg_ptr, value);
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
if (Symbol.dispose) WasmPublishOptions.prototype[Symbol.dispose] = WasmPublishOptions.prototype.free;
|
|
1353
|
+
|
|
1354
|
+
export class WasmSubscribeOptions {
|
|
1355
|
+
__destroy_into_raw() {
|
|
1356
|
+
const ptr = this.__wbg_ptr;
|
|
1357
|
+
this.__wbg_ptr = 0;
|
|
1358
|
+
WasmSubscribeOptionsFinalization.unregister(this);
|
|
1359
|
+
return ptr;
|
|
1360
|
+
}
|
|
1361
|
+
free() {
|
|
1362
|
+
const ptr = this.__destroy_into_raw();
|
|
1363
|
+
wasm.__wbg_wasmsubscribeoptions_free(ptr, 0);
|
|
1243
1364
|
}
|
|
1244
1365
|
/**
|
|
1245
1366
|
* @param {boolean} value
|
|
@@ -1247,19 +1368,6 @@ export class WasmSubscribeOptions {
|
|
|
1247
1368
|
set noLocal(value) {
|
|
1248
1369
|
wasm.wasmsubscribeoptions_set_noLocal(this.__wbg_ptr, value);
|
|
1249
1370
|
}
|
|
1250
|
-
/**
|
|
1251
|
-
* @returns {boolean}
|
|
1252
|
-
*/
|
|
1253
|
-
get retainAsPublished() {
|
|
1254
|
-
const ret = wasm.wasmsubscribeoptions_retainAsPublished(this.__wbg_ptr);
|
|
1255
|
-
return ret !== 0;
|
|
1256
|
-
}
|
|
1257
|
-
/**
|
|
1258
|
-
* @param {boolean} value
|
|
1259
|
-
*/
|
|
1260
|
-
set retainAsPublished(value) {
|
|
1261
|
-
wasm.wasmsubscribeoptions_set_retainAsPublished(this.__wbg_ptr, value);
|
|
1262
|
-
}
|
|
1263
1371
|
/**
|
|
1264
1372
|
* @returns {number}
|
|
1265
1373
|
*/
|
|
@@ -1267,12 +1375,25 @@ export class WasmSubscribeOptions {
|
|
|
1267
1375
|
const ret = wasm.wasmsubscribeoptions_retainHandling(this.__wbg_ptr);
|
|
1268
1376
|
return ret;
|
|
1269
1377
|
}
|
|
1378
|
+
/**
|
|
1379
|
+
* @returns {boolean}
|
|
1380
|
+
*/
|
|
1381
|
+
get retainAsPublished() {
|
|
1382
|
+
const ret = wasm.wasmsubscribeoptions_retainAsPublished(this.__wbg_ptr);
|
|
1383
|
+
return ret !== 0;
|
|
1384
|
+
}
|
|
1270
1385
|
/**
|
|
1271
1386
|
* @param {number} value
|
|
1272
1387
|
*/
|
|
1273
1388
|
set retainHandling(value) {
|
|
1274
1389
|
wasm.wasmsubscribeoptions_set_retainHandling(this.__wbg_ptr, value);
|
|
1275
1390
|
}
|
|
1391
|
+
/**
|
|
1392
|
+
* @param {boolean} value
|
|
1393
|
+
*/
|
|
1394
|
+
set retainAsPublished(value) {
|
|
1395
|
+
wasm.wasmsubscribeoptions_set_retainAsPublished(this.__wbg_ptr, value);
|
|
1396
|
+
}
|
|
1276
1397
|
/**
|
|
1277
1398
|
* @returns {number | undefined}
|
|
1278
1399
|
*/
|
|
@@ -1286,6 +1407,32 @@ export class WasmSubscribeOptions {
|
|
|
1286
1407
|
set subscriptionIdentifier(value) {
|
|
1287
1408
|
wasm.wasmbrokerconfig_set_server_keep_alive_secs(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
1288
1409
|
}
|
|
1410
|
+
constructor() {
|
|
1411
|
+
const ret = wasm.wasmsubscribeoptions_new();
|
|
1412
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1413
|
+
WasmSubscribeOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
1414
|
+
return this;
|
|
1415
|
+
}
|
|
1416
|
+
/**
|
|
1417
|
+
* @returns {number}
|
|
1418
|
+
*/
|
|
1419
|
+
get qos() {
|
|
1420
|
+
const ret = wasm.wasmsubscribeoptions_qos(this.__wbg_ptr);
|
|
1421
|
+
return ret;
|
|
1422
|
+
}
|
|
1423
|
+
/**
|
|
1424
|
+
* @returns {boolean}
|
|
1425
|
+
*/
|
|
1426
|
+
get noLocal() {
|
|
1427
|
+
const ret = wasm.wasmsubscribeoptions_noLocal(this.__wbg_ptr);
|
|
1428
|
+
return ret !== 0;
|
|
1429
|
+
}
|
|
1430
|
+
/**
|
|
1431
|
+
* @param {number} value
|
|
1432
|
+
*/
|
|
1433
|
+
set qos(value) {
|
|
1434
|
+
wasm.wasmsubscribeoptions_set_qos(this.__wbg_ptr, value);
|
|
1435
|
+
}
|
|
1289
1436
|
}
|
|
1290
1437
|
if (Symbol.dispose) WasmSubscribeOptions.prototype[Symbol.dispose] = WasmSubscribeOptions.prototype.free;
|
|
1291
1438
|
|
|
@@ -1300,6 +1447,22 @@ export class WasmTopicMapping {
|
|
|
1300
1447
|
const ptr = this.__destroy_into_raw();
|
|
1301
1448
|
wasm.__wbg_wasmtopicmapping_free(ptr, 0);
|
|
1302
1449
|
}
|
|
1450
|
+
/**
|
|
1451
|
+
* @param {string | null} [prefix]
|
|
1452
|
+
*/
|
|
1453
|
+
set local_prefix(prefix) {
|
|
1454
|
+
var ptr0 = isLikeNone(prefix) ? 0 : passStringToWasm0(prefix, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1455
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1456
|
+
wasm.wasmtopicmapping_set_local_prefix(this.__wbg_ptr, ptr0, len0);
|
|
1457
|
+
}
|
|
1458
|
+
/**
|
|
1459
|
+
* @param {string | null} [prefix]
|
|
1460
|
+
*/
|
|
1461
|
+
set remote_prefix(prefix) {
|
|
1462
|
+
var ptr0 = isLikeNone(prefix) ? 0 : passStringToWasm0(prefix, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1463
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1464
|
+
wasm.wasmtopicmapping_set_remote_prefix(this.__wbg_ptr, ptr0, len0);
|
|
1465
|
+
}
|
|
1303
1466
|
/**
|
|
1304
1467
|
* @param {string} pattern
|
|
1305
1468
|
* @param {WasmBridgeDirection} direction
|
|
@@ -1318,22 +1481,6 @@ export class WasmTopicMapping {
|
|
|
1318
1481
|
set qos(qos) {
|
|
1319
1482
|
wasm.wasmtopicmapping_set_qos(this.__wbg_ptr, qos);
|
|
1320
1483
|
}
|
|
1321
|
-
/**
|
|
1322
|
-
* @param {string | null} [prefix]
|
|
1323
|
-
*/
|
|
1324
|
-
set local_prefix(prefix) {
|
|
1325
|
-
var ptr0 = isLikeNone(prefix) ? 0 : passStringToWasm0(prefix, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1326
|
-
var len0 = WASM_VECTOR_LEN;
|
|
1327
|
-
wasm.wasmtopicmapping_set_local_prefix(this.__wbg_ptr, ptr0, len0);
|
|
1328
|
-
}
|
|
1329
|
-
/**
|
|
1330
|
-
* @param {string | null} [prefix]
|
|
1331
|
-
*/
|
|
1332
|
-
set remote_prefix(prefix) {
|
|
1333
|
-
var ptr0 = isLikeNone(prefix) ? 0 : passStringToWasm0(prefix, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1334
|
-
var len0 = WASM_VECTOR_LEN;
|
|
1335
|
-
wasm.wasmtopicmapping_set_remote_prefix(this.__wbg_ptr, ptr0, len0);
|
|
1336
|
-
}
|
|
1337
1484
|
}
|
|
1338
1485
|
if (Symbol.dispose) WasmTopicMapping.prototype[Symbol.dispose] = WasmTopicMapping.prototype.free;
|
|
1339
1486
|
|
|
@@ -1349,67 +1496,50 @@ export class WasmWillMessage {
|
|
|
1349
1496
|
wasm.__wbg_wasmwillmessage_free(ptr, 0);
|
|
1350
1497
|
}
|
|
1351
1498
|
/**
|
|
1352
|
-
* @param {
|
|
1353
|
-
* @param {Uint8Array} payload
|
|
1499
|
+
* @param {boolean} value
|
|
1354
1500
|
*/
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1358
|
-
const ptr1 = passArray8ToWasm0(payload, wasm.__wbindgen_malloc);
|
|
1359
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1360
|
-
const ret = wasm.wasmwillmessage_new(ptr0, len0, ptr1, len1);
|
|
1361
|
-
this.__wbg_ptr = ret >>> 0;
|
|
1362
|
-
WasmWillMessageFinalization.register(this, this.__wbg_ptr, this);
|
|
1363
|
-
return this;
|
|
1501
|
+
set retain(value) {
|
|
1502
|
+
wasm.wasmwillmessage_set_retain(this.__wbg_ptr, value);
|
|
1364
1503
|
}
|
|
1365
1504
|
/**
|
|
1366
|
-
* @returns {string}
|
|
1505
|
+
* @returns {string | undefined}
|
|
1367
1506
|
*/
|
|
1368
|
-
get
|
|
1369
|
-
|
|
1370
|
-
let
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
deferred1_1 = ret[1];
|
|
1375
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
1376
|
-
} finally {
|
|
1377
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1507
|
+
get contentType() {
|
|
1508
|
+
const ret = wasm.wasmwillmessage_contentType(this.__wbg_ptr);
|
|
1509
|
+
let v1;
|
|
1510
|
+
if (ret[0] !== 0) {
|
|
1511
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
1512
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1378
1513
|
}
|
|
1514
|
+
return v1;
|
|
1379
1515
|
}
|
|
1380
1516
|
/**
|
|
1381
|
-
* @
|
|
1382
|
-
*/
|
|
1383
|
-
set topic(value) {
|
|
1384
|
-
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1385
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1386
|
-
wasm.wasmwillmessage_set_topic(this.__wbg_ptr, ptr0, len0);
|
|
1387
|
-
}
|
|
1388
|
-
/**
|
|
1389
|
-
* @returns {number}
|
|
1390
|
-
*/
|
|
1391
|
-
get qos() {
|
|
1392
|
-
const ret = wasm.wasmwillmessage_qos(this.__wbg_ptr);
|
|
1393
|
-
return ret;
|
|
1394
|
-
}
|
|
1395
|
-
/**
|
|
1396
|
-
* @param {number} value
|
|
1517
|
+
* @returns {string | undefined}
|
|
1397
1518
|
*/
|
|
1398
|
-
|
|
1399
|
-
wasm.
|
|
1519
|
+
get responseTopic() {
|
|
1520
|
+
const ret = wasm.wasmwillmessage_responseTopic(this.__wbg_ptr);
|
|
1521
|
+
let v1;
|
|
1522
|
+
if (ret[0] !== 0) {
|
|
1523
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
1524
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1525
|
+
}
|
|
1526
|
+
return v1;
|
|
1400
1527
|
}
|
|
1401
1528
|
/**
|
|
1402
|
-
* @
|
|
1529
|
+
* @param {string | null} [value]
|
|
1403
1530
|
*/
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1531
|
+
set contentType(value) {
|
|
1532
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1533
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1534
|
+
wasm.wasmwillmessage_set_contentType(this.__wbg_ptr, ptr0, len0);
|
|
1407
1535
|
}
|
|
1408
1536
|
/**
|
|
1409
|
-
* @param {
|
|
1537
|
+
* @param {string | null} [value]
|
|
1410
1538
|
*/
|
|
1411
|
-
set
|
|
1412
|
-
wasm.
|
|
1539
|
+
set responseTopic(value) {
|
|
1540
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1541
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1542
|
+
wasm.wasmwillmessage_set_responseTopic(this.__wbg_ptr, ptr0, len0);
|
|
1413
1543
|
}
|
|
1414
1544
|
/**
|
|
1415
1545
|
* @returns {number | undefined}
|
|
@@ -1418,12 +1548,6 @@ export class WasmWillMessage {
|
|
|
1418
1548
|
const ret = wasm.wasmconnectoptions_sessionExpiryInterval(this.__wbg_ptr);
|
|
1419
1549
|
return ret === 0x100000001 ? undefined : ret;
|
|
1420
1550
|
}
|
|
1421
|
-
/**
|
|
1422
|
-
* @param {number | null} [value]
|
|
1423
|
-
*/
|
|
1424
|
-
set willDelayInterval(value) {
|
|
1425
|
-
wasm.wasmbrokerconfig_set_server_keep_alive_secs(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
1426
|
-
}
|
|
1427
1551
|
/**
|
|
1428
1552
|
* @returns {number | undefined}
|
|
1429
1553
|
*/
|
|
@@ -1431,6 +1555,12 @@ export class WasmWillMessage {
|
|
|
1431
1555
|
const ret = wasm.wasmconnectoptions_maximumPacketSize(this.__wbg_ptr);
|
|
1432
1556
|
return ret === 0x100000001 ? undefined : ret;
|
|
1433
1557
|
}
|
|
1558
|
+
/**
|
|
1559
|
+
* @param {number | null} [value]
|
|
1560
|
+
*/
|
|
1561
|
+
set willDelayInterval(value) {
|
|
1562
|
+
wasm.wasmbrokerconfig_set_server_keep_alive_secs(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
1563
|
+
}
|
|
1434
1564
|
/**
|
|
1435
1565
|
* @param {number | null} [value]
|
|
1436
1566
|
*/
|
|
@@ -1438,44 +1568,61 @@ export class WasmWillMessage {
|
|
|
1438
1568
|
wasm.wasmconnectoptions_set_maximumPacketSize(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
1439
1569
|
}
|
|
1440
1570
|
/**
|
|
1441
|
-
* @
|
|
1571
|
+
* @param {string} topic
|
|
1572
|
+
* @param {Uint8Array} payload
|
|
1442
1573
|
*/
|
|
1443
|
-
|
|
1444
|
-
const
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1574
|
+
constructor(topic, payload) {
|
|
1575
|
+
const ptr0 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1576
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1577
|
+
const ptr1 = passArray8ToWasm0(payload, wasm.__wbindgen_malloc);
|
|
1578
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1579
|
+
const ret = wasm.wasmwillmessage_new(ptr0, len0, ptr1, len1);
|
|
1580
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1581
|
+
WasmWillMessageFinalization.register(this, this.__wbg_ptr, this);
|
|
1582
|
+
return this;
|
|
1451
1583
|
}
|
|
1452
1584
|
/**
|
|
1453
|
-
* @
|
|
1585
|
+
* @returns {number}
|
|
1454
1586
|
*/
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
wasm.wasmwillmessage_set_contentType(this.__wbg_ptr, ptr0, len0);
|
|
1587
|
+
get qos() {
|
|
1588
|
+
const ret = wasm.wasmwillmessage_qos(this.__wbg_ptr);
|
|
1589
|
+
return ret;
|
|
1459
1590
|
}
|
|
1460
1591
|
/**
|
|
1461
|
-
* @returns {string
|
|
1592
|
+
* @returns {string}
|
|
1462
1593
|
*/
|
|
1463
|
-
get
|
|
1464
|
-
|
|
1465
|
-
let
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1594
|
+
get topic() {
|
|
1595
|
+
let deferred1_0;
|
|
1596
|
+
let deferred1_1;
|
|
1597
|
+
try {
|
|
1598
|
+
const ret = wasm.wasmwillmessage_topic(this.__wbg_ptr);
|
|
1599
|
+
deferred1_0 = ret[0];
|
|
1600
|
+
deferred1_1 = ret[1];
|
|
1601
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1602
|
+
} finally {
|
|
1603
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1469
1604
|
}
|
|
1470
|
-
return v1;
|
|
1471
1605
|
}
|
|
1472
1606
|
/**
|
|
1473
|
-
* @
|
|
1607
|
+
* @returns {boolean}
|
|
1474
1608
|
*/
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1609
|
+
get retain() {
|
|
1610
|
+
const ret = wasm.wasmwillmessage_retain(this.__wbg_ptr);
|
|
1611
|
+
return ret !== 0;
|
|
1612
|
+
}
|
|
1613
|
+
/**
|
|
1614
|
+
* @param {number} value
|
|
1615
|
+
*/
|
|
1616
|
+
set qos(value) {
|
|
1617
|
+
wasm.wasmwillmessage_set_qos(this.__wbg_ptr, value);
|
|
1618
|
+
}
|
|
1619
|
+
/**
|
|
1620
|
+
* @param {string} value
|
|
1621
|
+
*/
|
|
1622
|
+
set topic(value) {
|
|
1623
|
+
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1624
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1625
|
+
wasm.wasmwillmessage_set_topic(this.__wbg_ptr, ptr0, len0);
|
|
1479
1626
|
}
|
|
1480
1627
|
}
|
|
1481
1628
|
if (Symbol.dispose) WasmWillMessage.prototype[Symbol.dispose] = WasmWillMessage.prototype.free;
|
|
@@ -1544,6 +1691,10 @@ function __wbg_get_imports() {
|
|
|
1544
1691
|
const ret = arg0.call(arg1, arg2);
|
|
1545
1692
|
return ret;
|
|
1546
1693
|
}, arguments) };
|
|
1694
|
+
imports.wbg.__wbg_call_78f94eb02ec7f9b2 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1695
|
+
const ret = arg0.call(arg1, arg2, arg3, arg4);
|
|
1696
|
+
return ret;
|
|
1697
|
+
}, arguments) };
|
|
1547
1698
|
imports.wbg.__wbg_call_abb4ff46ce38be40 = function() { return handleError(function (arg0, arg1) {
|
|
1548
1699
|
const ret = arg0.call(arg1);
|
|
1549
1700
|
return ret;
|
|
@@ -1625,10 +1776,6 @@ function __wbg_get_imports() {
|
|
|
1625
1776
|
const ret = new Uint8Array(arg0);
|
|
1626
1777
|
return ret;
|
|
1627
1778
|
};
|
|
1628
|
-
imports.wbg.__wbg_new_7c30d1f874652e62 = function() { return handleError(function (arg0, arg1) {
|
|
1629
|
-
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
|
|
1630
|
-
return ret;
|
|
1631
|
-
}, arguments) };
|
|
1632
1779
|
imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
|
|
1633
1780
|
const ret = new Error();
|
|
1634
1781
|
return ret;
|
|
@@ -1644,7 +1791,7 @@ function __wbg_get_imports() {
|
|
|
1644
1791
|
const a = state0.a;
|
|
1645
1792
|
state0.a = 0;
|
|
1646
1793
|
try {
|
|
1647
|
-
return
|
|
1794
|
+
return wasm_bindgen__convert__closures_____invoke__h1ee277075b103ebf(a, state0.b, arg0, arg1);
|
|
1648
1795
|
} finally {
|
|
1649
1796
|
state0.a = a;
|
|
1650
1797
|
}
|
|
@@ -1663,6 +1810,10 @@ function __wbg_get_imports() {
|
|
|
1663
1810
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1664
1811
|
return ret;
|
|
1665
1812
|
};
|
|
1813
|
+
imports.wbg.__wbg_new_with_str_78eef2ccb7920c9a = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1814
|
+
const ret = new WebSocket(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
1815
|
+
return ret;
|
|
1816
|
+
}, arguments) };
|
|
1666
1817
|
imports.wbg.__wbg_now_2c95c9de01293173 = function(arg0) {
|
|
1667
1818
|
const ret = arg0.now();
|
|
1668
1819
|
return ret;
|
|
@@ -1776,29 +1927,33 @@ function __wbg_get_imports() {
|
|
|
1776
1927
|
imports.wbg.__wbg_warn_6e567d0d926ff881 = function(arg0) {
|
|
1777
1928
|
console.warn(arg0);
|
|
1778
1929
|
};
|
|
1930
|
+
imports.wbg.__wbg_wasmmessageproperties_new = function(arg0) {
|
|
1931
|
+
const ret = WasmMessageProperties.__wrap(arg0);
|
|
1932
|
+
return ret;
|
|
1933
|
+
};
|
|
1779
1934
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
1780
1935
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1781
1936
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1782
1937
|
return ret;
|
|
1783
1938
|
};
|
|
1784
|
-
imports.wbg.
|
|
1785
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1786
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1939
|
+
imports.wbg.__wbindgen_cast_272c165660a21b68 = function(arg0, arg1) {
|
|
1940
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 280, function: Function { arguments: [Externref], shim_idx: 281, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1941
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h849099dfd9acf928, wasm_bindgen__convert__closures_____invoke__ha9d3e198cd0951b0);
|
|
1787
1942
|
return ret;
|
|
1788
1943
|
};
|
|
1789
|
-
imports.wbg.
|
|
1790
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1791
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1944
|
+
imports.wbg.__wbindgen_cast_7776c8637c2963f5 = function(arg0, arg1) {
|
|
1945
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 14, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 15, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1946
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h21a697eaf8c5d6e0, wasm_bindgen__convert__closures_____invoke__h01763d79c10fe65e);
|
|
1792
1947
|
return ret;
|
|
1793
1948
|
};
|
|
1794
|
-
imports.wbg.
|
|
1795
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1796
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1949
|
+
imports.wbg.__wbindgen_cast_943816c95a67e66d = function(arg0, arg1) {
|
|
1950
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 269, function: Function { arguments: [], shim_idx: 270, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1951
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__he9d43d9a42a0e056, wasm_bindgen__convert__closures_____invoke__hf9723d0014506a5b);
|
|
1797
1952
|
return ret;
|
|
1798
1953
|
};
|
|
1799
|
-
imports.wbg.
|
|
1800
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1801
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1954
|
+
imports.wbg.__wbindgen_cast_b05293a5b76000cf = function(arg0, arg1) {
|
|
1955
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 14, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 15, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1956
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h21a697eaf8c5d6e0, wasm_bindgen__convert__closures_____invoke__h01763d79c10fe65e);
|
|
1802
1957
|
return ret;
|
|
1803
1958
|
};
|
|
1804
1959
|
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
@@ -1806,9 +1961,9 @@ function __wbg_get_imports() {
|
|
|
1806
1961
|
const ret = arg0;
|
|
1807
1962
|
return ret;
|
|
1808
1963
|
};
|
|
1809
|
-
imports.wbg.
|
|
1810
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1811
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1964
|
+
imports.wbg.__wbindgen_cast_e5e5fe8f2379daee = function(arg0, arg1) {
|
|
1965
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 14, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 15, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1966
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h21a697eaf8c5d6e0, wasm_bindgen__convert__closures_____invoke__h01763d79c10fe65e);
|
|
1812
1967
|
return ret;
|
|
1813
1968
|
};
|
|
1814
1969
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
@@ -1828,6 +1983,7 @@ function __wbg_finalize_init(instance, module) {
|
|
|
1828
1983
|
wasm = instance.exports;
|
|
1829
1984
|
__wbg_init.__wbindgen_wasm_module = module;
|
|
1830
1985
|
cachedDataViewMemory0 = null;
|
|
1986
|
+
cachedUint32ArrayMemory0 = null;
|
|
1831
1987
|
cachedUint8ArrayMemory0 = null;
|
|
1832
1988
|
|
|
1833
1989
|
|