Module: codemelted

Collection of global namespaces implementing the CodeMelted - Developer cross platform use case modules. Meant for Deno / Web Browser runtime environments. In support of the global namespaces include a set of utility classes that are the result of a namespace function call.

The identified classes must be imported. The documented types are global like the namespaces.

Source:

Classes

CAsyncWorker
CBroadcastChannel
CEventSource
CFetchResponse
CFileInfo
CLogRecord
CMailToParams
CShareResult
CTimer
CWindowMessenger

Type Definitions

CAsyncData

Data that is received via the
Type:
  • object
Properties:
Name Type Description
type string "data" or "error".
data any The actual data associated with the type.
Source:

CAsyncTask(dataopt) → {any}

The task to run as part of the different module async functions.
Parameters:
Name Type Attributes Description
data any <optional>
The data to process on the backend.
Source:
Returns:
The calculated answer to the task if any.
Type
any

CAsyncWorkerListener(data) → {void}

Message handler that receives a JSON object with two fields. "type" which equals either "error" or "data". Then "data" which contains the actual data received.
Parameters:
Name Type Description
data CAsyncData The data received via the wrapped worker.
Source:
Returns:
Type
void

COnLogEventListener(record) → {void}

Handler to support the codemelted_flutter module for post processing of a logged event.
Parameters:
Name Type Description
record CLogRecord The log record that was received.
Source:
Returns:
Type
void

COnMessageListener(data)

Message handler that receives a JSON object with two fields. "type" which equals either "error" or "data". Then "data" which contains the actual data received.
Parameters:
Name Type Description
data object The object identifying the type of data and the actual data.
Source:

COnWindowMessageListener(origin, data)

Event listener for messages received from different loaded pages.
Parameters:
Name Type Description
origin string Where the message originated.
data any The data received from the other window.
Source: