onMessage method
- dynamic data, [
- Channel channel = kAnyChannel
override
Implementation
@override
void onMessage(data, [Channel channel = kAnyChannel]) {
super.onMessage(data, channel);
final message = RoomMessage(data);
_rooms[message.room]?.onMessage(message.message, channel);
}