CodeMeltedNetwork class
Constructors
-
CodeMeltedNetwork()
-
Sets up the internal instance for this object.
factory
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
online
→ bool
-
Identifies if a clear connection exists to the Internet from the browser.
no setter
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
beacon({required String url, CObject? data})
→ bool
-
Sends an HTTP POST request containing a small amount of data to a web
server. It's intended to be used for sending analytics data to a web
server, and avoids some of the problems with legacy techniques for
sending analytics, such as the use of XMLHttpRequest.
-
broadcastChannel({required String name, required COnMessageListener onMessage})
→ CBroadcastChannel
-
Constructs a CBroadcastChannel object for posting messages between
pages within the same domain.
-
fetch({required CFetchAction action, required String url, CObject? body, String? cache, String? credentials, String? integrity, bool? keepalive, String? mode, String? priority, String? redirect, String? referrer, String? referrerPolicy, AbortSignal? signal})
→ Future<CFetchResponse>
-
Implements the ability to fetch a server's REST API endpoint to retrieve
and manage data. The actions for the REST API are controlled via the
CFetchAction enumerated values with optional items to pass to the
endpoint. The result is a CFetchResponse wrapping the REST API endpoint
response to the request.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
severSentEvents({required String url, required COnMessageListener onMessage, bool withCredentials = false})
→ CEventSource
-
Constructs a CEventSource object to open a dedicated connection to a
HTTP server to receive messages only.
-
toString()
→ String
-
A string representation of this object.
inherited
-
windowMessenger({required COnWindowMessengerListener onMessage})
→ CWindowMessenger
-
Constructs a CWindowMessenger object to allow for communication between
pages.