sendSocketMessage static method
Implementation
static Future<void> sendSocketMessage({
required Room? room,
String? message,
String? type,
String? status,
String? timeEnd,
int? size,
}) async {
try {
final messageJson = json.encode({
"type": type ?? "text",
"size": size,
"status": status,
"message": message,
"time_end": timeEnd,
"callId": callId,
});
showLogL(messageJson);
await room?.localParticipant?.publishData(utf8.encode(messageJson));
} catch (e) {
showLogE(e.toString(), className: "sendSocketMessage");
}
}