Interface WxProtocolBoundSender

Source
Expand description

Sender type bound to a specific protocol.

This is the internal type used by generated sender classes to execute RPC calls.

interface WxProtocolBoundSender {
    send<TReturn>(fId: number, data: unknown[]): WxPromise<TReturn>;
    sendVoid(fId: number, data: unknown[]): WxPromise<void>;
}

Methods§

Source§

send<TReturn>(fId: number, data: unknown[]): WxPromise<TReturn>

Send a call

Source§

sendVoid(fId: number, data: unknown[]): WxPromise<void>

Send a call and ignore the returned value