Home Reference Source
import {DataMessage} from 'rabbit-hole'
public class | source

DataMessage

Extends:

Message → DataMessage

A worker message that contains transferable data.

Constructor Summary

Public Constructor
public

constructor(action: Action)

Constructs a new data message.

Member Summary

Public Members
public

A serialised data container.

Inherited Summary

From class Message
public

A worker action.

public

error: ErrorEvent

An error.

Public Constructors

public constructor(action: Action) source

Constructs a new data message.

Override:

Message#constructor

Params:

NameTypeAttributeDescription
action Action
  • optional
  • default: null

A worker action.

Public Members

public data: Object source

A serialised data container.