onMessage method

  1. @override
void onMessage(
  1. T data, [
  2. Channel channel = kAnyChannel
])
override

Implementation

@override
void onMessage(T data, [Channel channel = kAnyChannel]) {
  super.onMessage(data, channel);
  super.sendMessage(data, toChannel ?? channel);
}