Type Alias WxProtocolBindConfig<TSender>

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

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 Parameters

  • TSender

Type declaration

  • 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