tart-revocable
Stability: 1 - Experimental
Implementation of a revocable proxy for Tiny Actor Run-Time in JavaScript.
Contributors
Overview
An implementation of a revocable proxy.
Usage
To run the below example run:
npm run readme
"use strict"; var revocable = tart = ; var sponsor = tart; var { console;}; var actor = ; var capabilities = revocable; var proxy = ;;;; var revoke = ;var ackCustomer = ;;
Tests
npm test
Documentation
Public API
revocable.proxy(actor)
actor
: Actorfunction (message) {}
Actor to create a revocable proxies for.- Return: Object An object containing behaviors for revocable proxies and a revoke capabilities for the proxies.
proxyBeh
: Actorfunction (message) {}
Actor behavior that will forward all messages to theactor
it is a proxy for.revokeBeh
: Actorfunction (customer) {}
Actor behavior that upon receipt of a message will revoke all proxies for theactor
.customer
: Actorfunction () {}
An ack will be sent to thecustomer
upon revocation.