getStateStream abstract method

Stream<ConnectionStateChange>? getStateStream(
  1. TransportConn conn
)

Returns a stream of state changes for a specific connection.

Subscribers to this stream will be notified whenever the connection's state changes.

conn The transport connection to monitor.

Returns a Stream of ConnectionStateChange events, or null if the connection is not registered with the manager.

Implementation

Stream<ConnectionStateChange>? getStateStream(TransportConn conn);