onSent abstract method

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

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

messageId correlates this frame with its reply instead of the whole connection session, for clients that carry request identifiers.

Implementation

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