DraftMessage: IncomingMessage & {
    recipientId?: string;
    updatedEntities?: UpdatedEntity[];
}

Type for draft messages which have not yet been sent by the system.

Type declaration

  • OptionalrecipientId?: 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.

  • OptionalupdatedEntities?: 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.