WebSocketLink class
A SocketLink over the WebSocket of dart:io.
Text frames only, which is what a framed protocol uses. A binary frame that arrives is dropped rather than crashing the link.
- Implemented types
Properties
Methods
-
close(
) → Future< void> -
Closes the link.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
String frame) → void -
Sends
frame.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
connect(
Uri endpoint, {Map< String, Object> ? headers}) → Future<SocketLink> -
Connects to
endpoint. -
opener(
{Map< String, Object> ? headers}) → SocketOpener -
A SocketOpener that connects with
headerson every attempt.