RealtimeSessionScope constructor
RealtimeSessionScope({
- required RealtimeTrafficCollector collector,
- required String sessionId,
- Uri? uri,
- RealtimeProtocolType protocolType = RealtimeProtocolType.webSocket,
- 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);