Skip to main content

register

Function register 

Source
pub fn register(engine: &Arc<WshRpcEngine>, state: &AppState)
Expand description

These RPCs are the operator’s, except agent.account.switch and identity.account.availability: an agent connection (bus:register) is refused for the others, since the move relinks and restarts other agents and a sign-in clears other agents’ state. A switch is open to agents (the caller is ctx.agent_id) and is audited under their name. The availability names accounts and their limits, never a credential, and an agent has to see it to choose where to move (spec §4.4).