onReceived abstract method

void onReceived(
  1. Object data, {
  2. String? url,
  3. Map<String, Object?>? metrics,
  4. String? messageId,
})

Records an inbound frame. url and metrics are optional context.

messageId correlates this frame with the request it answers.

Implementation

void onReceived(
  Object data, {
  String? url,
  Map<String, Object?>? metrics,
  String? messageId,
});