What is a link?
A link is an established encrypted connection between a host and a client. It represents the active session over which RPC calls and events flow.Link lifecycle
Link states
Creating a link
From host perspective
From client perspective
Multiple links
A host can maintain multiple simultaneous links:- Encryption keys
- Granted capabilities
- Sequence counters
- Connection state
Link persistence
Links persist across network interruptions:- The session key remains valid
- Reconnection uses exponential backoff
- RPC calls queue during disconnection
- Subscriptions restore automatically
Security per link
Each link has independent security:- Unique session key (forward secrecy)
- Independent capability grants
- Separate sequence counters
- Isolated error handling