addMessageReceived method
Implementation
void addMessageReceived(Map<String, dynamic> params) {
var data = jsonDecode(params['data']);
final isMe = localParticipant?.participantName == data['nickname'];
var msg = Message(
data['message'],
params['from'],
data['nickname'],
DateTime.now(),
isMe,
isMe,
);
messages.add(msg);
_messageStreamController.add(msg);
}