@rivetkit/rivetkit-wasm 2.3.27 → 2.3.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivetkit/rivetkit-wasm",
3
- "version": "2.3.27",
3
+ "version": "2.3.29",
4
4
  "description": "WebAssembly bindings for RivetKit core on edge JavaScript runtimes",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
package/pkg/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "collaborators": [
5
5
  "Rivet Gaming, LLC <developer@rivet.dev>"
6
6
  ],
7
- "version": "2.3.27",
7
+ "version": "2.3.29",
8
8
  "license": "Apache-2.0",
9
9
  "files": [
10
10
  "rivetkit_wasm_bg.wasm",
@@ -2,40 +2,40 @@
2
2
  /* eslint-disable */
3
3
  export function start(): void;
4
4
  export function bridgeRivetErrorPrefix(): string;
5
- export function roundTripBytes(bytes: Uint8Array): Uint8Array;
6
5
  export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
6
+ export function roundTripBytes(bytes: Uint8Array): Uint8Array;
7
7
  export function awaitPromise(promise: Promise<any>): Promise<any>;
8
8
  export class ActorContext {
9
9
  free(): void;
10
- saveState(payload: any): Promise<void>;
11
- connectConn(params: Uint8Array, request: any): Promise<ConnHandle>;
12
- setRunWakeAt(timestamp_ms?: number | null): Promise<void>;
13
- requestSaveAndWait(opts: any): Promise<void>;
14
- verifyInspectorAuth(bearer_token?: string | null): Promise<void>;
15
- beginStateTransaction(timeout_ms?: number | null): Promise<ActorStateTransaction>;
16
- saveStateAndWorkflowBatch(writes: any): Promise<void>;
17
- waitForTrackedShutdownWork(): Promise<boolean>;
18
- waitForTrackedShutdownWorkUnbounded(): Promise<void>;
19
10
  keepAwake(promise: Promise<any>): void;
11
+ saveState(payload: any): Promise<void>;
20
12
  waitUntil(promise: Promise<any>): void;
21
13
  abortSignal(): any;
14
+ connectConn(params: Uint8Array, request: any): Promise<ConnHandle>;
22
15
  requestSave(opts: any): void;
23
16
  registerTask(promise: Promise<any>): void;
24
17
  runtimeState(): any;
25
18
  endKeepAwake(region_id: number): void;
19
+ setRunWakeAt(timestamp_ms?: number | null): Promise<void>;
26
20
  beginKeepAwake(): number;
27
21
  inspectorSnapshot(): object;
28
22
  endOnStateChange(): void;
29
23
  restartRunHandler(): void;
30
24
  beginOnStateChange(): void;
25
+ requestSaveAndWait(opts: any): Promise<void>;
26
+ verifyInspectorAuth(bearer_token?: string | null): Promise<void>;
31
27
  endWebsocketCallback(region_id: number): void;
28
+ beginStateTransaction(timeout_ms?: number | null): Promise<ActorStateTransaction>;
32
29
  beginWebsocketCallback(): number;
33
30
  dirtyHibernatableConns(): Array<any>;
31
+ saveStateAndWorkflowBatch(writes: any): Promise<void>;
34
32
  kv(): Kv;
33
+ waitForTrackedShutdownWork(): Promise<boolean>;
35
34
  takePendingHibernationChanges(): Array<any>;
36
35
  key(): any;
37
36
  constructor();
38
37
  sql(): SqliteDb;
38
+ waitForTrackedShutdownWorkUnbounded(): Promise<void>;
39
39
  name(): string;
40
40
  conns(): Array<any>;
41
41
  queue(): Queue;
@@ -80,10 +80,10 @@ export class ConnHandle {
80
80
  export class CoreRegistry {
81
81
  free(): void;
82
82
  handleServerlessRequest(req: any, on_stream_event: Function, cancel_token: CancellationToken, config: any): Promise<any>;
83
- serve(config: any): Promise<void>;
84
- shutdown(): Promise<void>;
85
83
  constructor();
84
+ serve(config: any): Promise<void>;
86
85
  register(name: string, factory: ActorFactory): void;
86
+ shutdown(): Promise<void>;
87
87
  }
88
88
  export class Kv {
89
89
  private constructor();
@@ -102,6 +102,7 @@ export class Queue {
102
102
  private constructor();
103
103
  free(): void;
104
104
  nextBatch(options: any, signal?: CancellationToken | null): Promise<Array<any>>;
105
+ tryNextBatch(options: any): Array<any>;
105
106
  waitForNames(names: any, options: any, signal?: CancellationToken | null): Promise<QueueMessage>;
106
107
  enqueueAndWait(name: string, body: Uint8Array, options: any, signal?: CancellationToken | null): Promise<Uint8Array | undefined>;
107
108
  inspectMessages(): Promise<Array<any>>;
@@ -109,18 +110,17 @@ export class Queue {
109
110
  waitForNamesAvailable(names: any, options: any): Promise<void>;
110
111
  send(name: string, body: Uint8Array): Promise<QueueMessage>;
111
112
  reset(): Promise<void>;
112
- tryNextBatch(options: any): Array<any>;
113
113
  maxSize(): number;
114
114
  }
115
115
  export class QueueMessage {
116
116
  private constructor();
117
117
  free(): void;
118
- complete(response: any): Promise<void>;
119
118
  createdAt(): number;
120
119
  isCompletable(): boolean;
121
120
  id(): bigint;
122
121
  body(): Uint8Array;
123
122
  name(): string;
123
+ complete(response: any): Promise<void>;
124
124
  }
125
125
  export class Schedule {
126
126
  private constructor();
@@ -159,9 +159,9 @@ export class SqliteTransaction {
159
159
  export class WebSocketHandle {
160
160
  private constructor();
161
161
  free(): void;
162
- close(code?: number | null, reason?: string | null): Promise<void>;
163
162
  setEventCallback(callback: Function): void;
164
163
  send(data: Uint8Array, binary: boolean): void;
164
+ close(code?: number | null, reason?: string | null): Promise<void>;
165
165
  }
166
166
 
167
167
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
@@ -291,11 +291,11 @@ export interface InitOutput {
291
291
  readonly websockethandle_close: (a: number, b: number, c: number, d: number) => any;
292
292
  readonly websockethandle_send: (a: number, b: number, c: number, d: number) => [number, number];
293
293
  readonly websockethandle_setEventCallback: (a: number, b: any) => void;
294
+ readonly start: () => void;
294
295
  readonly actorcontext_queue: (a: number) => number;
295
296
  readonly actorcontext_schedule: (a: number) => number;
296
- readonly __wbg_queue_free: (a: number, b: number) => void;
297
297
  readonly __wbg_schedule_free: (a: number, b: number) => void;
298
- readonly start: () => void;
298
+ readonly __wbg_queue_free: (a: number, b: number) => void;
299
299
  readonly __wbindgen_malloc: (a: number, b: number) => number;
300
300
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
301
301
  readonly __wbindgen_exn_store: (a: number) => void;
@@ -304,9 +304,9 @@ export interface InitOutput {
304
304
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
305
305
  readonly __wbindgen_export_6: WebAssembly.Table;
306
306
  readonly __externref_table_dealloc: (a: number) => void;
307
- readonly closure1996_externref_shim: (a: number, b: number, c: any) => void;
308
- readonly closure2339_externref_shim: (a: number, b: number, c: any) => void;
309
- readonly closure2574_externref_shim: (a: number, b: number, c: any, d: any) => void;
307
+ readonly closure1975_externref_shim: (a: number, b: number, c: any) => void;
308
+ readonly closure2334_externref_shim: (a: number, b: number, c: any) => void;
309
+ readonly closure2571_externref_shim: (a: number, b: number, c: any, d: any) => void;
310
310
  readonly __wbindgen_start: () => void;
311
311
  }
312
312
 
@@ -203,6 +203,25 @@ function debugString(val) {
203
203
  return className;
204
204
  }
205
205
 
206
+ function passArray8ToWasm0(arg, malloc) {
207
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
208
+ getUint8ArrayMemory0().set(arg, ptr / 1);
209
+ WASM_VECTOR_LEN = arg.length;
210
+ return ptr;
211
+ }
212
+
213
+ function takeFromExternrefTable0(idx) {
214
+ const value = wasm.__wbindgen_export_4.get(idx);
215
+ wasm.__externref_table_dealloc(idx);
216
+ return value;
217
+ }
218
+
219
+ function _assertClass(instance, klass) {
220
+ if (!(instance instanceof klass)) {
221
+ throw new Error(`expected instance of ${klass.name}`);
222
+ }
223
+ }
224
+
206
225
  export function start() {
207
226
  wasm.start();
208
227
  }
@@ -223,34 +242,28 @@ export function bridgeRivetErrorPrefix() {
223
242
  }
224
243
  }
225
244
 
226
- function passArray8ToWasm0(arg, malloc) {
227
- const ptr = malloc(arg.length * 1, 1) >>> 0;
228
- getUint8ArrayMemory0().set(arg, ptr / 1);
229
- WASM_VECTOR_LEN = arg.length;
230
- return ptr;
231
- }
232
245
  /**
233
246
  * @param {Uint8Array} bytes
234
247
  * @returns {Uint8Array}
235
248
  */
236
- export function roundTripBytes(bytes) {
249
+ export function uint8ArrayFromBytes(bytes) {
237
250
  const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
238
251
  const len0 = WASM_VECTOR_LEN;
239
- const ret = wasm.roundTripBytes(ptr0, len0);
240
- var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
241
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
242
- return v2;
252
+ const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
253
+ return ret;
243
254
  }
244
255
 
245
256
  /**
246
257
  * @param {Uint8Array} bytes
247
258
  * @returns {Uint8Array}
248
259
  */
249
- export function uint8ArrayFromBytes(bytes) {
260
+ export function roundTripBytes(bytes) {
250
261
  const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
251
262
  const len0 = WASM_VECTOR_LEN;
252
- const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
253
- return ret;
263
+ const ret = wasm.roundTripBytes(ptr0, len0);
264
+ var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
265
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
266
+ return v2;
254
267
  }
255
268
 
256
269
  /**
@@ -262,27 +275,16 @@ export function awaitPromise(promise) {
262
275
  return ret;
263
276
  }
264
277
 
265
- function _assertClass(instance, klass) {
266
- if (!(instance instanceof klass)) {
267
- throw new Error(`expected instance of ${klass.name}`);
268
- }
269
- }
270
-
271
- function takeFromExternrefTable0(idx) {
272
- const value = wasm.__wbindgen_export_4.get(idx);
273
- wasm.__externref_table_dealloc(idx);
274
- return value;
275
- }
276
278
  function __wbg_adapter_50(arg0, arg1, arg2) {
277
- wasm.closure1996_externref_shim(arg0, arg1, arg2);
279
+ wasm.closure1975_externref_shim(arg0, arg1, arg2);
278
280
  }
279
281
 
280
282
  function __wbg_adapter_59(arg0, arg1, arg2) {
281
- wasm.closure2339_externref_shim(arg0, arg1, arg2);
283
+ wasm.closure2334_externref_shim(arg0, arg1, arg2);
282
284
  }
283
285
 
284
- function __wbg_adapter_297(arg0, arg1, arg2, arg3) {
285
- wasm.closure2574_externref_shim(arg0, arg1, arg2, arg3);
286
+ function __wbg_adapter_273(arg0, arg1, arg2, arg3) {
287
+ wasm.closure2571_externref_shim(arg0, arg1, arg2, arg3);
286
288
  }
287
289
 
288
290
  const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
@@ -313,86 +315,19 @@ export class ActorContext {
313
315
  wasm.__wbg_actorcontext_free(ptr, 0);
314
316
  }
315
317
  /**
316
- * @param {any} payload
317
- * @returns {Promise<void>}
318
- */
319
- saveState(payload) {
320
- const ret = wasm.actorcontext_saveState(this.__wbg_ptr, payload);
321
- return ret;
322
- }
323
- /**
324
- * @param {Uint8Array} params
325
- * @param {any} request
326
- * @returns {Promise<ConnHandle>}
327
- */
328
- connectConn(params, request) {
329
- const ptr0 = passArray8ToWasm0(params, wasm.__wbindgen_malloc);
330
- const len0 = WASM_VECTOR_LEN;
331
- const ret = wasm.actorcontext_connectConn(this.__wbg_ptr, ptr0, len0, request);
332
- return ret;
333
- }
334
- /**
335
- * @param {number | null} [timestamp_ms]
336
- * @returns {Promise<void>}
337
- */
338
- setRunWakeAt(timestamp_ms) {
339
- const ret = wasm.actorcontext_setRunWakeAt(this.__wbg_ptr, !isLikeNone(timestamp_ms), isLikeNone(timestamp_ms) ? 0 : timestamp_ms);
340
- return ret;
341
- }
342
- /**
343
- * @param {any} opts
344
- * @returns {Promise<void>}
345
- */
346
- requestSaveAndWait(opts) {
347
- const ret = wasm.actorcontext_requestSaveAndWait(this.__wbg_ptr, opts);
348
- return ret;
349
- }
350
- /**
351
- * @param {string | null} [bearer_token]
352
- * @returns {Promise<void>}
353
- */
354
- verifyInspectorAuth(bearer_token) {
355
- var ptr0 = isLikeNone(bearer_token) ? 0 : passStringToWasm0(bearer_token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
356
- var len0 = WASM_VECTOR_LEN;
357
- const ret = wasm.actorcontext_verifyInspectorAuth(this.__wbg_ptr, ptr0, len0);
358
- return ret;
359
- }
360
- /**
361
- * @param {number | null} [timeout_ms]
362
- * @returns {Promise<ActorStateTransaction>}
363
- */
364
- beginStateTransaction(timeout_ms) {
365
- const ret = wasm.actorcontext_beginStateTransaction(this.__wbg_ptr, !isLikeNone(timeout_ms), isLikeNone(timeout_ms) ? 0 : timeout_ms);
366
- return ret;
367
- }
368
- /**
369
- * @param {any} writes
370
- * @returns {Promise<void>}
371
- */
372
- saveStateAndWorkflowBatch(writes) {
373
- const ret = wasm.actorcontext_saveStateAndWorkflowBatch(this.__wbg_ptr, writes);
374
- return ret;
375
- }
376
- /**
377
- * @returns {Promise<boolean>}
318
+ * @param {Promise<any>} promise
378
319
  */
379
- waitForTrackedShutdownWork() {
380
- const ret = wasm.actorcontext_waitForTrackedShutdownWork(this.__wbg_ptr);
381
- return ret;
320
+ keepAwake(promise) {
321
+ wasm.actorcontext_keepAwake(this.__wbg_ptr, promise);
382
322
  }
383
323
  /**
324
+ * @param {any} payload
384
325
  * @returns {Promise<void>}
385
326
  */
386
- waitForTrackedShutdownWorkUnbounded() {
387
- const ret = wasm.actorcontext_waitForTrackedShutdownWorkUnbounded(this.__wbg_ptr);
327
+ saveState(payload) {
328
+ const ret = wasm.actorcontext_saveState(this.__wbg_ptr, payload);
388
329
  return ret;
389
330
  }
390
- /**
391
- * @param {Promise<any>} promise
392
- */
393
- keepAwake(promise) {
394
- wasm.actorcontext_keepAwake(this.__wbg_ptr, promise);
395
- }
396
331
  /**
397
332
  * @param {Promise<any>} promise
398
333
  */
@@ -409,6 +344,17 @@ export class ActorContext {
409
344
  }
410
345
  return takeFromExternrefTable0(ret[0]);
411
346
  }
347
+ /**
348
+ * @param {Uint8Array} params
349
+ * @param {any} request
350
+ * @returns {Promise<ConnHandle>}
351
+ */
352
+ connectConn(params, request) {
353
+ const ptr0 = passArray8ToWasm0(params, wasm.__wbindgen_malloc);
354
+ const len0 = WASM_VECTOR_LEN;
355
+ const ret = wasm.actorcontext_connectConn(this.__wbg_ptr, ptr0, len0, request);
356
+ return ret;
357
+ }
412
358
  /**
413
359
  * @param {any} opts
414
360
  */
@@ -434,6 +380,14 @@ export class ActorContext {
434
380
  endKeepAwake(region_id) {
435
381
  wasm.actorcontext_endKeepAwake(this.__wbg_ptr, region_id);
436
382
  }
383
+ /**
384
+ * @param {number | null} [timestamp_ms]
385
+ * @returns {Promise<void>}
386
+ */
387
+ setRunWakeAt(timestamp_ms) {
388
+ const ret = wasm.actorcontext_setRunWakeAt(this.__wbg_ptr, !isLikeNone(timestamp_ms), isLikeNone(timestamp_ms) ? 0 : timestamp_ms);
389
+ return ret;
390
+ }
437
391
  /**
438
392
  * @returns {number}
439
393
  */
@@ -463,12 +417,38 @@ export class ActorContext {
463
417
  beginOnStateChange() {
464
418
  wasm.actorcontext_beginOnStateChange(this.__wbg_ptr);
465
419
  }
420
+ /**
421
+ * @param {any} opts
422
+ * @returns {Promise<void>}
423
+ */
424
+ requestSaveAndWait(opts) {
425
+ const ret = wasm.actorcontext_requestSaveAndWait(this.__wbg_ptr, opts);
426
+ return ret;
427
+ }
428
+ /**
429
+ * @param {string | null} [bearer_token]
430
+ * @returns {Promise<void>}
431
+ */
432
+ verifyInspectorAuth(bearer_token) {
433
+ var ptr0 = isLikeNone(bearer_token) ? 0 : passStringToWasm0(bearer_token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
434
+ var len0 = WASM_VECTOR_LEN;
435
+ const ret = wasm.actorcontext_verifyInspectorAuth(this.__wbg_ptr, ptr0, len0);
436
+ return ret;
437
+ }
466
438
  /**
467
439
  * @param {number} region_id
468
440
  */
469
441
  endWebsocketCallback(region_id) {
470
442
  wasm.actorcontext_endWebsocketCallback(this.__wbg_ptr, region_id);
471
443
  }
444
+ /**
445
+ * @param {number | null} [timeout_ms]
446
+ * @returns {Promise<ActorStateTransaction>}
447
+ */
448
+ beginStateTransaction(timeout_ms) {
449
+ const ret = wasm.actorcontext_beginStateTransaction(this.__wbg_ptr, !isLikeNone(timeout_ms), isLikeNone(timeout_ms) ? 0 : timeout_ms);
450
+ return ret;
451
+ }
472
452
  /**
473
453
  * @returns {number}
474
454
  */
@@ -483,6 +463,14 @@ export class ActorContext {
483
463
  const ret = wasm.actorcontext_dirtyHibernatableConns(this.__wbg_ptr);
484
464
  return ret;
485
465
  }
466
+ /**
467
+ * @param {any} writes
468
+ * @returns {Promise<void>}
469
+ */
470
+ saveStateAndWorkflowBatch(writes) {
471
+ const ret = wasm.actorcontext_saveStateAndWorkflowBatch(this.__wbg_ptr, writes);
472
+ return ret;
473
+ }
486
474
  /**
487
475
  * @returns {Kv}
488
476
  */
@@ -490,6 +478,13 @@ export class ActorContext {
490
478
  const ret = wasm.actorcontext_kv(this.__wbg_ptr);
491
479
  return Kv.__wrap(ret);
492
480
  }
481
+ /**
482
+ * @returns {Promise<boolean>}
483
+ */
484
+ waitForTrackedShutdownWork() {
485
+ const ret = wasm.actorcontext_waitForTrackedShutdownWork(this.__wbg_ptr);
486
+ return ret;
487
+ }
493
488
  /**
494
489
  * @returns {Array<any>}
495
490
  */
@@ -523,6 +518,13 @@ export class ActorContext {
523
518
  const ret = wasm.actorcontext_sql(this.__wbg_ptr);
524
519
  return SqliteDb.__wrap(ret);
525
520
  }
521
+ /**
522
+ * @returns {Promise<void>}
523
+ */
524
+ waitForTrackedShutdownWorkUnbounded() {
525
+ const ret = wasm.actorcontext_waitForTrackedShutdownWorkUnbounded(this.__wbg_ptr);
526
+ return ret;
527
+ }
526
528
  /**
527
529
  * @returns {string}
528
530
  */
@@ -891,6 +893,12 @@ export class CoreRegistry {
891
893
  const ret = wasm.coreregistry_handleServerlessRequest(this.__wbg_ptr, req, on_stream_event, cancel_token.__wbg_ptr, config);
892
894
  return ret;
893
895
  }
896
+ constructor() {
897
+ const ret = wasm.coreregistry_new();
898
+ this.__wbg_ptr = ret >>> 0;
899
+ CoreRegistryFinalization.register(this, this.__wbg_ptr, this);
900
+ return this;
901
+ }
894
902
  /**
895
903
  * @param {any} config
896
904
  * @returns {Promise<void>}
@@ -899,19 +907,6 @@ export class CoreRegistry {
899
907
  const ret = wasm.coreregistry_serve(this.__wbg_ptr, config);
900
908
  return ret;
901
909
  }
902
- /**
903
- * @returns {Promise<void>}
904
- */
905
- shutdown() {
906
- const ret = wasm.coreregistry_shutdown(this.__wbg_ptr);
907
- return ret;
908
- }
909
- constructor() {
910
- const ret = wasm.coreregistry_new();
911
- this.__wbg_ptr = ret >>> 0;
912
- CoreRegistryFinalization.register(this, this.__wbg_ptr, this);
913
- return this;
914
- }
915
910
  /**
916
911
  * @param {string} name
917
912
  * @param {ActorFactory} factory
@@ -925,6 +920,13 @@ export class CoreRegistry {
925
920
  throw takeFromExternrefTable0(ret[0]);
926
921
  }
927
922
  }
923
+ /**
924
+ * @returns {Promise<void>}
925
+ */
926
+ shutdown() {
927
+ const ret = wasm.coreregistry_shutdown(this.__wbg_ptr);
928
+ return ret;
929
+ }
928
930
  }
929
931
 
930
932
  const KvFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -1088,6 +1090,17 @@ export class Queue {
1088
1090
  const ret = wasm.queue_nextBatch(this.__wbg_ptr, options, ptr0);
1089
1091
  return ret;
1090
1092
  }
1093
+ /**
1094
+ * @param {any} options
1095
+ * @returns {Array<any>}
1096
+ */
1097
+ tryNextBatch(options) {
1098
+ const ret = wasm.queue_tryNextBatch(this.__wbg_ptr, options);
1099
+ if (ret[2]) {
1100
+ throw takeFromExternrefTable0(ret[1]);
1101
+ }
1102
+ return takeFromExternrefTable0(ret[0]);
1103
+ }
1091
1104
  /**
1092
1105
  * @param {any} names
1093
1106
  * @param {any} options
@@ -1173,17 +1186,6 @@ export class Queue {
1173
1186
  const ret = wasm.queue_reset(this.__wbg_ptr);
1174
1187
  return ret;
1175
1188
  }
1176
- /**
1177
- * @param {any} options
1178
- * @returns {Array<any>}
1179
- */
1180
- tryNextBatch(options) {
1181
- const ret = wasm.queue_tryNextBatch(this.__wbg_ptr, options);
1182
- if (ret[2]) {
1183
- throw takeFromExternrefTable0(ret[1]);
1184
- }
1185
- return takeFromExternrefTable0(ret[0]);
1186
- }
1187
1189
  /**
1188
1190
  * @returns {number}
1189
1191
  */
@@ -1218,14 +1220,6 @@ export class QueueMessage {
1218
1220
  const ptr = this.__destroy_into_raw();
1219
1221
  wasm.__wbg_queuemessage_free(ptr, 0);
1220
1222
  }
1221
- /**
1222
- * @param {any} response
1223
- * @returns {Promise<void>}
1224
- */
1225
- complete(response) {
1226
- const ret = wasm.queuemessage_complete(this.__wbg_ptr, response);
1227
- return ret;
1228
- }
1229
1223
  /**
1230
1224
  * @returns {number}
1231
1225
  */
@@ -1271,6 +1265,14 @@ export class QueueMessage {
1271
1265
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1272
1266
  }
1273
1267
  }
1268
+ /**
1269
+ * @param {any} response
1270
+ * @returns {Promise<void>}
1271
+ */
1272
+ complete(response) {
1273
+ const ret = wasm.queuemessage_complete(this.__wbg_ptr, response);
1274
+ return ret;
1275
+ }
1274
1276
  }
1275
1277
 
1276
1278
  const ScheduleFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -1617,17 +1619,6 @@ export class WebSocketHandle {
1617
1619
  const ptr = this.__destroy_into_raw();
1618
1620
  wasm.__wbg_websockethandle_free(ptr, 0);
1619
1621
  }
1620
- /**
1621
- * @param {number | null} [code]
1622
- * @param {string | null} [reason]
1623
- * @returns {Promise<void>}
1624
- */
1625
- close(code, reason) {
1626
- var ptr0 = isLikeNone(reason) ? 0 : passStringToWasm0(reason, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1627
- var len0 = WASM_VECTOR_LEN;
1628
- const ret = wasm.websockethandle_close(this.__wbg_ptr, isLikeNone(code) ? 0xFFFFFF : code, ptr0, len0);
1629
- return ret;
1630
- }
1631
1622
  /**
1632
1623
  * @param {Function} callback
1633
1624
  */
@@ -1646,6 +1637,17 @@ export class WebSocketHandle {
1646
1637
  throw takeFromExternrefTable0(ret[0]);
1647
1638
  }
1648
1639
  }
1640
+ /**
1641
+ * @param {number | null} [code]
1642
+ * @param {string | null} [reason]
1643
+ * @returns {Promise<void>}
1644
+ */
1645
+ close(code, reason) {
1646
+ var ptr0 = isLikeNone(reason) ? 0 : passStringToWasm0(reason, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1647
+ var len0 = WASM_VECTOR_LEN;
1648
+ const ret = wasm.websockethandle_close(this.__wbg_ptr, isLikeNone(code) ? 0xFFFFFF : code, ptr0, len0);
1649
+ return ret;
1650
+ }
1649
1651
  }
1650
1652
 
1651
1653
  async function __wbg_load(module, imports) {
@@ -1880,7 +1882,7 @@ function __wbg_get_imports() {
1880
1882
  const a = state0.a;
1881
1883
  state0.a = 0;
1882
1884
  try {
1883
- return __wbg_adapter_297(a, state0.b, arg0, arg1);
1885
+ return __wbg_adapter_273(a, state0.b, arg0, arg1);
1884
1886
  } finally {
1885
1887
  state0.a = a;
1886
1888
  }
@@ -2112,24 +2114,24 @@ function __wbg_get_imports() {
2112
2114
  const ret = false;
2113
2115
  return ret;
2114
2116
  };
2115
- imports.wbg.__wbindgen_closure_wrapper5113 = function(arg0, arg1, arg2) {
2116
- const ret = makeMutClosure(arg0, arg1, 1997, __wbg_adapter_50);
2117
+ imports.wbg.__wbindgen_closure_wrapper4734 = function(arg0, arg1, arg2) {
2118
+ const ret = makeMutClosure(arg0, arg1, 1976, __wbg_adapter_50);
2117
2119
  return ret;
2118
2120
  };
2119
- imports.wbg.__wbindgen_closure_wrapper5115 = function(arg0, arg1, arg2) {
2120
- const ret = makeMutClosure(arg0, arg1, 1997, __wbg_adapter_50);
2121
+ imports.wbg.__wbindgen_closure_wrapper4736 = function(arg0, arg1, arg2) {
2122
+ const ret = makeMutClosure(arg0, arg1, 1976, __wbg_adapter_50);
2121
2123
  return ret;
2122
2124
  };
2123
- imports.wbg.__wbindgen_closure_wrapper5117 = function(arg0, arg1, arg2) {
2124
- const ret = makeMutClosure(arg0, arg1, 1997, __wbg_adapter_50);
2125
+ imports.wbg.__wbindgen_closure_wrapper4738 = function(arg0, arg1, arg2) {
2126
+ const ret = makeMutClosure(arg0, arg1, 1976, __wbg_adapter_50);
2125
2127
  return ret;
2126
2128
  };
2127
- imports.wbg.__wbindgen_closure_wrapper5119 = function(arg0, arg1, arg2) {
2128
- const ret = makeMutClosure(arg0, arg1, 1997, __wbg_adapter_50);
2129
+ imports.wbg.__wbindgen_closure_wrapper4740 = function(arg0, arg1, arg2) {
2130
+ const ret = makeMutClosure(arg0, arg1, 1976, __wbg_adapter_50);
2129
2131
  return ret;
2130
2132
  };
2131
- imports.wbg.__wbindgen_closure_wrapper5687 = function(arg0, arg1, arg2) {
2132
- const ret = makeMutClosure(arg0, arg1, 2340, __wbg_adapter_59);
2133
+ imports.wbg.__wbindgen_closure_wrapper5704 = function(arg0, arg1, arg2) {
2134
+ const ret = makeMutClosure(arg0, arg1, 2335, __wbg_adapter_59);
2133
2135
  return ret;
2134
2136
  };
2135
2137
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file
@@ -124,11 +124,11 @@ export const uint8ArrayFromBytes: (a: number, b: number) => any;
124
124
  export const websockethandle_close: (a: number, b: number, c: number, d: number) => any;
125
125
  export const websockethandle_send: (a: number, b: number, c: number, d: number) => [number, number];
126
126
  export const websockethandle_setEventCallback: (a: number, b: any) => void;
127
+ export const start: () => void;
127
128
  export const actorcontext_queue: (a: number) => number;
128
129
  export const actorcontext_schedule: (a: number) => number;
129
- export const __wbg_queue_free: (a: number, b: number) => void;
130
130
  export const __wbg_schedule_free: (a: number, b: number) => void;
131
- export const start: () => void;
131
+ export const __wbg_queue_free: (a: number, b: number) => void;
132
132
  export const __wbindgen_malloc: (a: number, b: number) => number;
133
133
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
134
134
  export const __wbindgen_exn_store: (a: number) => void;
@@ -137,7 +137,7 @@ export const __wbindgen_export_4: WebAssembly.Table;
137
137
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
138
138
  export const __wbindgen_export_6: WebAssembly.Table;
139
139
  export const __externref_table_dealloc: (a: number) => void;
140
- export const closure1996_externref_shim: (a: number, b: number, c: any) => void;
141
- export const closure2339_externref_shim: (a: number, b: number, c: any) => void;
142
- export const closure2574_externref_shim: (a: number, b: number, c: any, d: any) => void;
140
+ export const closure1975_externref_shim: (a: number, b: number, c: any) => void;
141
+ export const closure2334_externref_shim: (a: number, b: number, c: any) => void;
142
+ export const closure2571_externref_shim: (a: number, b: number, c: any, d: any) => void;
143
143
  export const __wbindgen_start: () => void;