Message: {
    payload?: unknown;
    type: string;
}

A message. It describes the type of the message and may contain a payload.

Type declaration

  • Optional payload?: unknown
  • type: string