Logo FSBarV1_Archived

AdminChannelHost Module

Hub-side orchestrator for the autohost AdminChannel. Serializes outbound admin commands onto the channel, de-duplicates rapid-fire same-kind submits within a short quiet window (research.md §R5), maintains hub-visible status, and publishes every transition through IHubEventSink. Callers submit intents; the host decides when/whether they reach the socket (feature 039).

Types

Type Description

AdminChannelHost

Serializing owner for one AdminChannel. Dispose to tear down the coalescing agent and release the channel.

AdminChannelStatus

Re-export of AdminChannelStatus. Mirrors the spec's "Admin Channel Status" entity (data-model.md §2).

SubmitOutcome

The outcome of one AdminChannelHost.Submit call. Commands coalesce per kind, so a newer command may supersede an older pending one — the caller sees Coalesced in that case.

Functions and values

Function or value Description

attach (channel, events)

Full Usage: attach (channel, events)

Parameters:
Returns: AdminChannelHost

Attach to an already-bound AdminChannel and a hub event sink. Publishes HubEvent.AdminChannelStatusChanged on every status transition.

channel : AdminChannel
events : IHubEventSink
Returns: AdminChannelHost

unavailable (reason, events)

Full Usage: unavailable (reason, events)

Parameters:
Returns: AdminChannelHost

Construct an AdminChannelHost in the Unavailable state. Used when AdminChannel.bind fails at launch so the hub still has a host object whose Submit calls reject with the bind reason (FR-009).

reason : string
events : IHubEventSink
Returns: AdminChannelHost

Type something to start searching.