IoHubSocket class final
One live hub connection over a dart:io WebSocket. Binary frames are
dropped at the boundary (the hub speaks text frames only and answers
them with a bad_frame error).
- Implemented types
Constructors
- IoHubSocket(WebSocket _ws)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isOpen → bool
-
Whether the connection can still accept outbound frames.
no setteroverride
-
messages
→ Stream<
String> -
Inbound text frames. The stream completing (done or error) means the
connection is gone — the repository reconnects through its transport.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> -
Closes the connection; idempotent.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
String text) → Future< void> -
Writes one text frame.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited