Skip to main content

VRPC documentation

VRPC makes the classes and functions of one program callable from others, over MQTT, in JavaScript, C++, Python and on Arduino, with React hooks for the browser. This folder documents VRPC for JavaScript (Node.js and the browser) and the protocol every VRPC implementation speaks.

Start here​

  • Getting started - offer a class from one program and use it from another, in ten minutes.

Understand​

  • How VRPC works - agents, clients, the broker, and how a call travels.
  • Instances - shared and isolated instances, how long they live, and how they release what they run.
  • Calls, callbacks and errors - what can be called, how values travel, what a caller sees when something fails.
  • Events - event functions, registrations and subscriptions, greeting, ends and losses.
  • Glossary - every term in one meaning.

Do​

Look up​

Other languages​

Each implementation documents its own API and examples and refers here for the protocol: