req method
Send a message that expects responses via @
@param msg @param cb
Implementation
VoidCallback req(TTMsg msg, TTMsgCb? cb) {
final String reqId = msg.key = msg.key ?? generateMessageId();
if (!isNull(cb)) {
_callbacks[reqId] = cb!;
}
send([msg]);
return () {
off(reqId);
};
}