mirror of
https://github.com/zap-proto/ocaml-rpc.git
synced 2026-10-30 15:04:28 +00:00
All the example code is now in the repository, making it easy to people to look at the solutions if they get stuck, and allowing the tutorial to be tested automatically. The tutorial was also too long; it has now been split into two parts.
11 lines
192 B
Cap'n Proto
11 lines
192 B
Cap'n Proto
@0xb287252b6cbed46e;
|
|
|
|
interface Callback {
|
|
log @0 (msg :Text) -> ();
|
|
}
|
|
|
|
interface Echo {
|
|
ping @0 (msg :Text) -> (reply :Text);
|
|
heartbeat @1 (msg :Text, callback :Callback) -> ();
|
|
}
|