receive method

void receive(
  1. dynamic data, {
  2. String? eventName,
})

Records an incoming frame received from the server. Safe to call.

Implementation

void receive(dynamic data, {String? eventName}) {
  if (_isClosed || !_shouldCapture) return;
  guardCapture(
      () => _record(data, FrameDirection.incoming, eventName: eventName));
}