state property
ConnState returns information about the connection state.
Implementation
@override
ConnState get state {
// Construct ConnState based on this session and underlying connection
final underlyingState = _connection.state;
return ConnState(
streamMultiplexer: protocolId, // Yamux is the multiplexer
security: underlyingState.security, // Get security from underlying conn
transport: underlyingState.transport, // Get transport from underlying conn
usedEarlyMuxerNegotiation: underlyingState.usedEarlyMuxerNegotiation, // Get from underlying
);
}