SwiftWebSocket class
Helper class to create intercepted WebSocket connections
Usage:
final ws = SwiftWebSocket.connect('wss://example.com/ws');
ws.stream.listen((message) {
// Handle message
});
ws.sink.add('Hello');
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sink → StreamSink
-
Sink for sending messages
no setter
- stream → Stream
-
Stream of received messages
no setter
- url → String
-
final
Methods
-
close(
) → void - Close the connection
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
dynamic message) → void - Send a message
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited