URLSessionWebSocketMessage class
A WebSocket message.
Constructors
- URLSessionWebSocketMessage.fromData(Data d)
-
Create a WebSocket data message.
factory
- URLSessionWebSocketMessage.fromString(String s)
-
Create a WebSocket string message.
factory
Properties
- data → Data?
-
The data associated with the WebSocket message.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- string → String?
-
The string associated with the WebSocket message.
no setter
- type → URLSessionWebSocketMessageType
-
The type of the WebSocket message.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited