virtual-machine 0.0.2 → 0.0.4

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
@@ -23,11 +23,6 @@ declare class WasmVm {
23
23
  * Get the current network connection status.
24
24
  */
25
25
  network_status(): NetworkStatus;
26
- /**
27
- * Connect to a WebSocket relay server for networking.
28
- * The URL should be like "ws://localhost:8765".
29
- */
30
- connect_network(ws_url: string): void;
31
26
  /**
32
27
  * Get current memory usage (DRAM size) in bytes.
33
28
  */
@@ -64,7 +59,6 @@ type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Modul
64
59
  interface InitOutput {
65
60
  readonly memory: WebAssembly.Memory;
66
61
  readonly __wbg_wasmvm_free: (a: number, b: number) => void;
67
- readonly wasmvm_connect_network: (a: number, b: number, c: number) => [number, number];
68
62
  readonly wasmvm_connect_webtransport: (a: number, b: number, c: number, d: number, e: number) => [number, number];
69
63
  readonly wasmvm_disconnect_network: (a: number) => void;
70
64
  readonly wasmvm_get_memory_usage: (a: number) => bigint;
@@ -74,9 +68,6 @@ interface InitOutput {
74
68
  readonly wasmvm_network_status: (a: number) => number;
75
69
  readonly wasmvm_new: (a: number, b: number) => [number, number, number];
76
70
  readonly wasmvm_step: (a: number) => void;
77
- readonly wasm_bindgen__convert__closures_____invoke__h74b0833075704714: (a: number, b: number, c: any) => void;
78
- readonly wasm_bindgen__closure__destroy__h0c7e8767edb7b811: (a: number, b: number) => void;
79
- readonly wasm_bindgen__convert__closures_____invoke__hb59cd9fe41fe42e5: (a: number, b: number) => void;
80
71
  readonly wasm_bindgen__convert__closures_____invoke__h6fd3101b14d9814b: (a: number, b: number, c: any) => void;
81
72
  readonly wasm_bindgen__closure__destroy__hb2f3fe1158f30bc9: (a: number, b: number) => void;
82
73
  readonly __wbindgen_malloc: (a: number, b: number) => number;