Skip to main content

Module rpc

Module rpc 

Source
Expand description

RPC communication layer: message routing and request/response engine. Port of Go’s pkg/wshutil/wshrouter.go and pkg/wshutil/wshrpc.go.

Modules§

action_access
Which websocket RPC commands a connection may call without being the AgentMux window.
action_commands
Which websocket RPC commands are recorded (super::action_record), decided one by one. Every command a connection can call is in exactly one of the lists below (a test checks it against the commands a real connection registers), so a new command cannot be added without someone deciding whether it changes anything.
action_record
The record of what each connection did: one line in the audit log for every call of a state-changing websocket RPC, whether it was done or refused, saying who made it (super::actor), what it acted on, and how it went.
actor
Who made a websocket RPC call, for the record of what was done.
engine
RPC engine: handles incoming RPC requests, dispatches to handlers, and manages request/response lifecycle with timeouts and streaming. Port of Go’s pkg/wshutil/wshrpc.go (WshRpc struct + handler dispatch).
schema
Which request and response type each RPC command carries.