Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Event<E, D>

The basic event structure clients and the server send to each other.

Each message must implement this interface for communication to be successful.

Type parameters

  • E: string

  • D: unknown

Hierarchy

  • Event

Index

Properties

Properties

data

data: D

Data aboout the event.

event

event: E

The string name of the event that occurred.

Optional sentTime

sentTime: undefined | number

An optional epoch for when the event was sent.

Generated using TypeDoc