onMessage method

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

Implementation

@override
void onMessage(Uint8List data, [Channel channel = kAnyChannel]) {
  super.onMessage(data, channel);
  runFunction(decode(data));
}