allow: [roles]. Without allow, it is internal, and no client can
reach it. The references are typed from the app tree, so the paths, arguments,
values and refusal codes are checked where you call them.
Result: a value, or a
refusal with a code and a sentence the caller may read. Nothing throws for a
refusal.
Choose an interface
References and frames
- A reference. The generated
appgives callable and label paths, such asapp.notes.add. - A frame.
client.under(label),.in(world)and.at(instant)return a client in that frame. See Frames and trials. - A credential.
connect(url, { token })takes an auth adapter or a fixed token. See Connect and authenticate.
allow, the frame’s grants, the labels it reads and writes, and
the guards on its acts.
Keep values live
client.watch and useWatch keep a query’s value current: the host runs the
query again when anything it read changes. See Realtime.