Saxonberg Server API
    Preparing search index...

    Message distribution and Scene factory.

    Index

    Constructors

    Properties

    Tags: {
        Audience: {
            Actor: "audience:actor";
            Bystander: "audience:bystander";
            Target: "audience:target";
            Witness: "audience:witness";
        };
    } = TAGS

    Methods

    • Whether topic is a communication act (say/whisper/shout/emote/ chat — the topic's data-driven communicative flag; NOT dm / narration / system). Consulted by the renown reception gate on the receive path so non-comm frames never hit the bus. false before the TopicCatalogue is warmed.

      Parameters

      • topic: string

      Returns boolean

    • Wrap a Stuff in a wire-safe reference. Display name is resolved server-side at compose time so the wire payload doesn't depend on a re-resolution step on the client.

      Parameters

      Returns StuffRef

    • Begin composing a Scene. Actor identity is required; per-method compositional requirements (Sensor for toSelf/toTarget; Containable for toPeers; Container for toContents) are enforced by the Scene builder.

      Parameters

      Returns Scene

    • Envelope delivery chokepoint, parallel to sendMessage. The envelope template carries no frameId — stamping happens per-Interactive at the wire-delivery layer in Application.sendEnvelopeToInteractive. Avatar's handleEnvelope is what fans the template out to connected Interactives; NPCs' default no-op handleEnvelope means an NPC envelope is server-side observable (shadows, audit) but never reaches a wire.

      Parameters

      • recipient: SensorStuff
      • template: EnvelopeTemplate

      Returns void

    • Lone delivery chokepoint — every routing helper here, every Scene.send dispatch, and every MudlogApi emit goes through this function. Non-MessageApi code MUST NOT call sensor.onMessage directly: the chokepoint is where future cross-cutting concerns (audit trail, debug logging, bus-level taps per §10.5, wire- level filters, etc.) hook in exactly once.

      Parameters

      • recipient: SensorStuff
      • frame: MessageFrame

      Returns void