Implements

Constructors

Properties

authorId: string

The ID of the author of the message.

content: string

The text content of the message.

id: string

Unique identifier for the message.

recipientId: undefined | string

The recipient of the message. If undefined, this is a public message sent to the room. If specified, it is only shown to the recipient. Others in the room will not see or receive it.

roomId: string

The room the message was sent to.

time: number

The time the message was sent (in ms since the epoch).

updatedEntities: UpdatedEntity[]

Some messages are sent in response to changes to the room (e.g. a room or user may have been renamed). This field will include a list of the entities which were updated, so the client may refresh its representation of these entities.