live showcase

The engine, in your browser tab

This page loads the real moonrpc library, compiled to JavaScript — the same H2Client and H2Server from the homepage, running in memory, no server. Encode a message, pick a call kind, and read back every frame the two engines trade.

The compiled engine (docs/engine/moonrpc.js) did not load. Build it with moon build --target js ./src/examples/browser and refresh.

① Encode a message

Fill the fields of a Greet message. The library packs it with its protobuf codec and shows the bytes, per field.

② Run a call

Drive the in-memory client and server engines. Every frame, in time order.