Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Message<MessageTypes, T>

Message received over a network.

Type parameters

  • MessageTypes: object = any

    • definition of types
  • T: MessageType<MessageTypes> = keyof MessageTypes & string

    • keys that are valid, generated via MessageTypes

Hierarchy

  • Message

Index

Properties

Properties

Readonly data

data: MessageData<MessageTypes, T>

The data of the message.

Readonly source

source: Node<MessageTypes>

The source of the message.

Readonly type

type: T

The type of the message.

Generated using TypeDoc