sendHostInfo method
dynamic
sendHostInfo(
- Map<String, dynamic>? data
)
Implementation
sendHostInfo(Map<String, dynamic>? data) {
print("here in sending host info $data");
try {
var response = {
"requestType": "hv_info", //host_viewers_information
"type": "request",
"requestId": _generateMd5(
DateTime.now().millisecondsSinceEpoch.toString() +
tenantID +
ref_id!),
"sessionUuid": callSessionUUID,
"referenceId": ref_id,
"store":
"1", // to save in middleware session information for new participants
"mcToken": mcToken,
"data": data
};
print("this is rpc in send host info $response");
_socket?.send(response);
} catch (e) {
print("this is error in send host info $e");
// onError?.call(1005, "bad state");
}
}