state property

  1. @override
ConnState get state
override

ConnState returns information about the connection state.

Implementation

@override
ConnState get state {
  // If secured, update the state to reflect the security protocol used
  // If secured, update the state to reflect the security protocol used
  // This state is now built using the provided securityProtocolId
  final originalState = _connection.state;
  return ConnState(
    streamMultiplexer: originalState.streamMultiplexer,
    security: securityProtocolId, // Use the passed-in ID
    transport: originalState.transport,
    usedEarlyMuxerNegotiation: originalState.usedEarlyMuxerNegotiation,
  );
}