peer
peer is a Standard Capability: a Script calls its Operations through a Grant the Host gives it, with ask for an answer or tell for none, and a suspending one with and wait. A call the Grants don’t allow fails to load. The full rules: chapter 7. Arguments are checked against the Operation’s Shapes, and a mismatch raises wrong kind; the entries below list the other errors.
Optional: a Host may choose not to offer
peer.
expose
Section titled “expose”expose [name], suspending
A Peer to the calling Script, once it is an Exposed Script: reachable from other Groups by the text name through this Grant, or without name through a new unnamed exposure only that Peer reaches.
Errors: bad address, name in use, out of domain.
unexpose
Section titled “unexpose”unexpose exposure, immediate
Nothing; withdraws the Script’s exposure through this Grant that exposure names, as the text name of a named one or the Peer expose gave, if there is one.
Errors: out of domain.
reach address, suspending
A Peer: a Host Object of kind peer standing for the Exposed Script the text address names.
Errors: bad address, not exposed, out of domain.
post peer, message, args, fire-and-forget
Sends the message message with the list args to the Peer peer’s Exposed Script, at most once; a plain send to a Peer is this.
Errors: out of domain, wrong kind, bad message name, not encodable.
call peer, message, args, suspending
The reply of the Peer peer’s Exposed Script to the message message with the list args, sent at most once; send … and wait to a Peer is this.
Errors: send failed, out of domain, wrong kind, bad message name, not encodable.
caller
Section titled “caller”caller, immediate
The Caller Identity of the Remote Send that started the calling Run: the data the receiving Host vouches for about who made it, or Nothing.