@pistonite/workex
    Preparing search index...

    Type Alias WxProtocolBindConfig<TSender>

    This is the configuration object passed into the creator functions, such as wxWorker and wxPopup. These are exported by the *.bus.ts files generated by the Workex CLI tool.

    type WxProtocolBindConfig<TSender> = {
        bindSend: (sender: WxProtocolBoundSender) => TSender;
        interfaces: [string, string];
        protocol: string;
        recvHandler: WxBusRecvHandler;
    }

    Type Parameters

    • TSender
    Index

    Properties

    bindSend: (sender: WxProtocolBoundSender) => TSender

    Create send wrapper that implements the sender interface

    interfaces: [string, string]

    The protocol interfaces. The first should match TSender, the second is the interface TSender is linked to

    protocol: string

    Name of the protocol (generated using --protocol flag)

    recvHandler: WxBusRecvHandler

    Handle for receiving remote calls