Skip to main content

protocol/socket/catalog

packages/protocol/src/socket/catalog

Purpose

Closed RPC catalogs and Effect RPC groups for first-party socket wiring. The main socket barrel exposes lifecycle classes. This module exposes the derived method/notification catalogs and group types needed by client, server-core, conformance, and generated protocol reference docs.

Public surface

agentCallableGroup

Variable
Effect RPC group for all agent-callable methods.

agentCallableMethods

Variable
Client-to-server descriptors an agent principal may originate.

AnyAgentCallableRpcDefinition

TypeAlias
Any descriptor an agent client may call.

AnyNotificationDefinition

TypeAlias
Any server-to-client notification descriptor.

AnyServerRpcDefinition

TypeAlias
Any client-to-server descriptor the server handles.

notificationDefinitions

Variable
Every server-to-client notification descriptor.

notificationRpcGroup

Variable
Server-to-client reverse notification group. The server fires each notification as a fire-and-forget void-result RPC on a target connection’s reverse channel; the client serves it via RpcServer<NotificationRpcGroup>, routing each payload into the SubscriberRegistry.

reverseRpcGroup

Variable
The full server-to-client reverse group: every notification descriptor, built as ONE RpcGroup over the member tuple. The server holds one RpcClient<ReverseRpcGroup> per connection (fires notifications fork-and-forget); clients stand one RpcServer<ReverseRpcGroup> on the s2c sink, routing each payload into the SubscriberRegistry.

ServerHandler

TypeAlias
Handler type for one inbound RPC descriptor.

ServerHandlers

TypeAlias
Complete server handler table keyed by every inbound RPC tag.

serverInboundGroup

Variable
Effect RPC group for all client-to-server calls accepted by the server.

serverInboundMethods

Variable
Full server inbound descriptor union. This is derived from the authored agent callable catalog, with the unauthenticated connect descriptor included once.

Files

  • index.ts