13.1. Overview

The Perspectives Distributed Runtime is accessed from an HTML page that runs in a browser. For most browsers (excepting Safari) we run the PDR in a SharedWorker process and its client HTML pages in their own (page) processes. They interact by exchanging messages through the Channel Messaging API.

This level of communication is programmed in the package Perspectives Proxy. The package provides several Javascript classes, some functions and a number of promises. The most important client-side facing are:

  • the PerspectiveProxy class, that holds an extensive API of functions to query the PDR and change state;

  • the function configurePDRproxy

  • the promise PDRproxy that exposes a PerspectivesProxy instance

  • the promise SharedWorkerChannelPromise that exposes the SharedWorkerChannel.