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
- Offering classes from an agent
- Writing event functions
- VRPC in the browser
- Persisting instances
- Calling C++ from Node.js
- Securing a deployment
- Running in production
- Troubleshooting
Look up
- API reference - every class, function and option of vrpc-js.
- Protocol specification - exactly what travels on the wire, for every VRPC implementation.
- Implementing VRPC - building an agent or a client in another language.
- Changelog - what changed in each version.
Other languages
Each implementation documents its own API and examples and refers here for the protocol:
- vrpc-hpp (C++)
- vrpc-py (Python)
- vrpc-arduino (Arduino, ESP32)
- vrpc-react (React hooks)