Cotal TypeScript packages
    Preparing search index...

    Interface WorkerHandlerSpec

    interface WorkerHandlerSpec {
        config?: unknown;
        export?: string;
        module: string;
    }
    Index
    config?: unknown

    Handed to that export, verbatim. Must be structured-cloneable, being all that crosses.

    export?: string

    The export to call. It takes config and answers an EffectHandler.

    module: string

    The module to import INSIDE the thread. An absolute file: URL or a bare package specifier.

    A handler is not serialisable and must not be: it holds sockets, a mesh client and a clock. What crosses is its NAME.