message-bridge
Bridges class function calls between two contexes(workers) with messages.
Install
npm install --save message-bridge
Also contains an amd bundle you can use with systemjs and requirejs.
Usage
I built this library for communication with a web worker.
Let say we want to implement this communication to the web worker.
// The service that runs on the worker. // Create the bridge interface (return promise for sync functions). ; // At your main program:; // At the worker:;; // Then, at your main program:;;;