RealtimeSessionScope constructor

RealtimeSessionScope({
  1. required RealtimeTrafficCollector collector,
  2. required String sessionId,
  3. Uri? uri,
  4. RealtimeProtocolType protocolType = RealtimeProtocolType.webSocket,
  5. bool? shouldCapture,
})

Creates a RealtimeSessionScope for tracking traffic over sessionId.

Implementation

RealtimeSessionScope({
  required this.collector,
  required this.sessionId,
  this.uri,
  this.protocolType = RealtimeProtocolType.webSocket,
  bool? shouldCapture,
}) : _shouldCapture = shouldCapture ?? collector.shouldCapture(uri);