onMessage method

  1. @override
void onMessage(
  1. dynamic data, [
  2. 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);
}