TxSocket class

TxSocket class to handle the WebSocket connection

Constructors

TxSocket.new(String hostAddress)
Default constructor that initializes the host address and logger

Properties

hashCode int
The hash code for this object.
no setterinherited
hostAddress String
getter/setter pair
onClose OnCloseCallback
getter/setter pair
onMessage OnMessageCallback
getter/setter pair
onOpen OnOpenCallback
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
Close the WebSocket connection
connect() → void
Connect to the WebSocket server
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(dynamic data) → void
Send data to the WebSocket server
toString() String
A string representation of this object.
inherited

Operators

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