Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 398 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 398 Bytes

Basic RPC

The smallest useful Synapse example.

Run the node in one terminal:

uv run python examples/basic_rpc/node.py

Call it from another terminal:

uv run python examples/basic_rpc/client.py

What it shows:

  • A Node exposes an async endpoint named sum.
  • A Client calls that endpoint over Synapse RPC.
  • No swarm discovery is needed for direct host/port RPC.