DummyWebSocketListener class
This is Dummy WebSocketListener implementation which throws UnimplementedError on any event received from underlying platform WebSocket. It's really useless :-S
- Inheritance
-
- Object
- WebSocketListener
- DummyWebSocketListener
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onByteArrayMessage(
Uint8List message) → void -
Invoked when a binary (type
0x2
) message has been received.override -
onError(
Exception exception) → void -
Invoked when error occurs in transport between dart and platform.
override
-
onStringMessage(
String message) → void -
Invoked when a text (type
0x1
) message has been received.override -
onWsClosed(
int code, String reason) → void -
Invoked when both peers have indicated that no more messages will be transmitted and the
connection has been successfully released. No further send/receive calls is possible.
All resources like WebSocketConnection should be released after this.
override
-
onWsClosing(
int code, String reason) → void -
Invoked when the remote peer has indicated that no more incoming messages will be transmitted.
All resources like WebSocketConnection should be released after this.
override
-
onWsOpened(
WebSocketConnection webSocketConnection) → void -
Invoked when a web socket has been accepted by the remote peer and may begin transmitting
messages. Only after this method is invoked, client is able to send/receive ws messages.
Returned WebSocketConnection can be used to send text/byte messages to server as long
as connection is still active (unless onWsClosing or onWsClosed are called)
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited