Interface WxProtocolBindConfig<TSender>

Source
Expand description

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.

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

Properties§

§bindSend: { ... }

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