@tinyactors/scxmljs
    Preparing search index...

    Interface IOProcessor

    An Event I/O Processor (spec §6.2.4, Appendix C).

    interface IOProcessor {
        aliases?: readonly string[];
        type: string;
        attach?(session: IOSession): void;
        detach?(session: IOSession): void;
        location(session: IOSession): string;
        send(message: OutboundSend, session: IOSession): void;
    }
    Index

    Properties

    aliases?: readonly string[]

    Short names accepted in <send type="…">.

    type: string

    Canonical type URI: key in _ioprocessors, and _event.origintype of inbound events.

    Methods

    • Called when a session using the processor starts; keep the handle to deliver inbound events.

      Parameters

      Returns void

    • Called when that session terminates or is disposed; stop delivering to it.

      Parameters

      Returns void

    • The address other parties use to reach this session through the processor (_ioprocessors[type].location).

      Parameters

      Returns string