|
|
|
@ -1,7 +1,7 @@ |
|
|
|
|
import type { Diff, Scope } from "../types.ts"; |
|
|
|
|
import { applyDiff } from "./applyDiff.ts"; |
|
|
|
|
|
|
|
|
|
import ng from "@nextgraph-monorepo/ng-sdk-js"; |
|
|
|
|
import * as ng from "@nextgraph-monorepo/ng-sdk-js"; |
|
|
|
|
|
|
|
|
|
import { |
|
|
|
|
deepSignal, |
|
|
|
@ -126,7 +126,9 @@ const onMessage = (event: MessageEvent<WasmMessage>) => { |
|
|
|
|
if (type === "Request") { |
|
|
|
|
// TODO: Handle message from wasm land and js land
|
|
|
|
|
// in different functions
|
|
|
|
|
|
|
|
|
|
ng.orm_start(undefined, event.data.shapeType, sessionId, (res) => |
|
|
|
|
console.log("result arrived on orm initial", res) |
|
|
|
|
); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (type === "Stop") return; |
|
|
|
|