@arqlet/engine-client 0.6.0 → 0.8.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 +9 -0
- package/THIRD_PARTY_NOTICES.md +1530 -0
- package/arqlet.wasm +0 -0
- package/columns.d.ts +3 -0
- package/columns.js +5 -1
- package/package.json +10 -3
- package/session.d.ts +178 -1
- package/session.js +260 -3
- package/view-controller.d.ts +160 -0
- package/view-controller.js +734 -0
- package/wasm-client.js +3 -1
package/wasm-client.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
// `onPublish(message)` receives each progressive publication as JSON while the call that produced it is still running.
|
|
2
|
-
// The module always imports `lw_publish`; without a callback the messages are dropped.
|
|
2
|
+
// The module always imports `lw_publish` and `lw_now`; without a callback the messages are dropped.
|
|
3
3
|
export async function createEngine(bytes,{onPublish}={}) {
|
|
4
4
|
const decoder=new TextDecoder();
|
|
5
5
|
let api;
|
|
6
6
|
const imports={env:{
|
|
7
|
+
// The clock for phase timings (`timings: true` on a request); the layout itself never reads it.
|
|
8
|
+
lw_now:()=>performance.now(),
|
|
7
9
|
lw_publish:(ptr,len)=>{
|
|
8
10
|
if(!onPublish) return;
|
|
9
11
|
// Copy out of linear memory now: the module releases the buffer when this returns.
|