feat: Counter canister and a Node client, over OCapN on a local replica
The canister is freestanding wasm32 importing only ic0. Each caller principal gets a CapTP session: start carries op:start-session, deliver carries later frames, and each reply carries the canister's frames. The client peer is wasm too, driven from Node by @icp-sdk/core. It holds answer releases so they ride ahead of the next call instead of costing an update call of their own: handshake, fetch, and each send are one update call apiece. Generated-by: Claude Code (claude-opus-5-5)
This commit is contained in:
1 parent
6348422012
commit
1177fc86b6
13 files changed
+787
-14
No files matched your search
@@ -0,0 +1,7 @@
|
||||
// Each blob is CapTP frames in Syrup byte-string envelopes.
|
||||
service : {
|
||||
// Open the caller's session with its `op:start-session`.
|
||||
start : (blob) -> (blob);
|
||||
// Carry later frames on the caller's session.
|
||||
deliver : (blob) -> (blob);
|
||||
}
|
||||
Reference in new issue
Block a user