WebSocketOpcUaByteTransport class

Implemented types

Constructors

WebSocketOpcUaByteTransport({required Uri endpoint, List<String> subprotocols = const ['opcua+cp'], Duration? connectTimeout})

Properties

connectTimeout Duration?
Optional dial timeout. null falls back to the OS default.
final
endpoint Uri
Endpoint URI — accepts opc.ws / opc.wss (translated to ws / wss for the underlying dart:io call) as well as raw ws:// / wss://.
final
hashCode int
The hash code for this object.
no setterinherited
incoming Stream<Uint8List>
Stream of incoming byte chunks. Each event is whatever the OS read buffer returned — frames are not aligned to chunks; the consumer must reassemble.
no setteroverride
isOpen bool
true while the underlying socket is open and not yet closed.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedSubprotocol String?
Subprotocol the server actually selected during the handshake (null when the socket has not been opened yet).
no setter
subprotocols List<String>
WebSocket subprotocols offered to the server. Default ['opcua+cp'] (OPC UA Conversation Protocol over WebSocket).
final

Methods

close() Future<void>
Closes the connection. Idempotent.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open() Future<void>
Opens the underlying connection. Idempotent.
override
send(List<int> bytes) Future<void>
Send the supplied bytes verbatim.
override
toString() String
A string representation of this object.
inherited

Operators

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