diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-05-14 01:11:56 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-05-14 01:11:56 -0400 |
commit | be7828684b888a8c9743e6dd7c54c924c076c8e2 (patch) | |
tree | f990b8b7e0991ac6f1b1c4020af1ddc6f53eca01 /main.ts | |
parent | 04df88912dc043b2443e855cddc0f8b5377ace4b (diff) |
Add makefile and use protobufjs
Diffstat (limited to 'main.ts')
-rw-r--r-- | main.ts | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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"); |