virtual-machine 0.0.15 → 0.0.17
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/build/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ declare class WasmVm {
|
|
|
20
20
|
get_output(): number | undefined;
|
|
21
21
|
/**
|
|
22
22
|
* Get the current network connection status.
|
|
23
|
+
* This checks the actual connection state by seeing if an IP was assigned.
|
|
23
24
|
*/
|
|
24
25
|
network_status(): NetworkStatus;
|
|
25
26
|
/**
|
|
@@ -32,6 +33,7 @@ declare class WasmVm {
|
|
|
32
33
|
disconnect_network(): void;
|
|
33
34
|
/**
|
|
34
35
|
* Connect to a WebTransport relay server.
|
|
36
|
+
* Note: Connection is asynchronous. Check network_status() to monitor connection state.
|
|
35
37
|
*/
|
|
36
38
|
connect_webtransport(url: string, cert_hash?: string | null): void;
|
|
37
39
|
/**
|
|
@@ -67,10 +69,11 @@ interface InitOutput {
|
|
|
67
69
|
readonly wasmvm_network_status: (a: number) => number;
|
|
68
70
|
readonly wasmvm_new: (a: number, b: number) => [number, number, number];
|
|
69
71
|
readonly wasmvm_step: (a: number) => void;
|
|
72
|
+
readonly wasm_bindgen__convert__closures_____invoke__hc0cb64907c7853c7: (a: number, b: number) => void;
|
|
73
|
+
readonly wasm_bindgen__closure__destroy__h9470784fcd98e87d: (a: number, b: number) => void;
|
|
70
74
|
readonly wasm_bindgen__convert__closures_____invoke__h6709295d3f31b919: (a: number, b: number, c: any) => void;
|
|
71
75
|
readonly wasm_bindgen__closure__destroy__hb099e2ae98169675: (a: number, b: number) => void;
|
|
72
|
-
readonly
|
|
73
|
-
readonly wasm_bindgen__closure__destroy__h5a236a3e5f42ce16: (a: number, b: number) => void;
|
|
76
|
+
readonly wasm_bindgen__convert__closures_____invoke__h5aa3f59cafdb6c9c: (a: number, b: number) => void;
|
|
74
77
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
75
78
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
76
79
|
readonly __wbindgen_exn_store: (a: number) => void;
|