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

hashCode int
The hash code for this object.
no setterinherited
inbound Stream<String>
Frames as they arrive.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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 headers on every attempt.