WebSocketTransportFactory class

Opens WebSocketTransports to scheme://host:port + path.

The atServer upgrades path on its TLS port, so scheme is wss outside tests. flushTimeout bounds each flush of a transport it opens.

Implemented types

Constructors

WebSocketTransportFactory({String path = '/ws', String scheme = 'wss', Duration flushTimeout = const Duration(seconds: 30)})
const

Properties

flushTimeout → Duration
final
hashCode → int
The hash code for this object.
no setterinherited
path → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scheme → String
final

Methods

connect(String host, String port, {Duration? timeout}) → Future<AtTransport>
A URL the WebSocket constructor refuses, an error or close before open, timeout elapsing (the network default with none), and a close of the lookup it opens for, surface as SecondaryConnectException; the cause is kept in the message.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited