- waitForResponse<Message extends { tx: string }>(
tx: string,
PROTOCOL: string,
timeout?: number,
):
| LuaMultiReturn<[undefined | number, Message]>
| LuaMultiReturn<[undefined, undefined]> Type Parameters
- Message extends { tx: string }
Parameters
- tx: string
- PROTOCOL: string
- timeout: number = 30
Returns
| LuaMultiReturn<[undefined | number, Message]>
| LuaMultiReturn<[undefined, undefined]>