summaryrefslogtreecommitdiff
path: root/main.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-05-14 01:11:56 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-05-14 01:11:56 -0400
commitbe7828684b888a8c9743e6dd7c54c924c076c8e2 (patch)
treef990b8b7e0991ac6f1b1c4020af1ddc6f53eca01 /main.ts
parent04df88912dc043b2443e855cddc0f8b5377ace4b (diff)
Add makefile and use protobufjs
Diffstat (limited to 'main.ts')
-rw-r--r--main.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.ts b/main.ts
index 38044b3d8..9071c2fcd 100644
--- a/main.ts
+++ b/main.ts
@@ -1,7 +1,10 @@
import * as ts from "typescript";
+import { main as pb } from "./msg.pb"
V8Worker2.recv((ab: ArrayBuffer) {
+ let msg = pb.Msg.decode(new Uint8Array(ab));
V8Worker2.print("Got array buffer", ab.byteLength);
+ V8Worker2.print("msg.argv", msg.argv);
});
V8Worker2.print("Hello");