A WebSocket managed by the Cloudflare Durable Object hibernation API.
Text and binary messages are represented by String and Uint8List
respectively. The JavaScript WebSocket object is kept inside
routed_node; application code does not need package:web or
dart:js_interop.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- readyState → int
-
The WebSocket ready-state constant exposed by the Worker runtime.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
[int? code, String? reason]) → void - Performs the close operation.
-
deserializeAttachment<
T> ({CloudflareJsonDecoder< T> ? decode}) → T? - Reads the attachment stored by serializeAttachment.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
Object data) → void - Performs the send operation.
-
serializeAttachment(
Object? attachment) → void - Stores an attachment that survives Durable Object hibernation.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited