actions/action_types.ts view source
Action<TCtx> A spec paired with its optional handler — the composable unit passed to
register_action_ws and create_rpc_client. The server uses
both fields; the client reads only spec (the handler is
ignored, harmless). Shared fuz_app primitives (e.g. heartbeat_action)
export a complete tuple so consumers spread them into both sides'
actions array without inventing per-repo ping plumbing.
Left open for future fields (rate_limit, ACL, middleware hooks) so
additions attach to the action itself instead of scattering across
parallel arrays.
generics
TCtx
spec
handler
Server-side handler. Ignored by the client. Omit for client-only specs.
WsActionHandler<TCtx>