ConnectionContext constructor

ConnectionContext({
  1. String? connectionId,
  2. required String remotePeerId,
  3. required String connectionType,
  4. DateTime? establishedAt,
  5. String? outerConnectionId,
  6. String? sessionId,
  7. String? relayPeerId,
  8. int? hopStreamId,
  9. String? transportConnectionId,
})

Implementation

ConnectionContext({
  String? connectionId,
  required this.remotePeerId,
  required this.connectionType,
  DateTime? establishedAt,
  this.outerConnectionId,
  this.sessionId,
  this.relayPeerId,
  this.hopStreamId,
  this.transportConnectionId,
})  : connectionId = connectionId ?? _uuid.v4(),
      establishedAt = establishedAt ?? DateTime.now();