Options
All
  • Public
  • Public/Protected
  • All
Menu

A customized owned request type for sending out room messages ([specification]).

Hierarchy

  • RoomMessageRequest

Index

Constructors

  • new RoomMessageRequest(id: string, room_id: string, txn_id: string, event_type: string, content: string): RoomMessageRequest
  • Create a new RoomMessageRequest.

    Parameters

    • id: string
    • room_id: string
    • txn_id: string
    • event_type: string
    • content: string

    Returns RoomMessageRequest

Properties

body: string

A JSON-encoded string containing the message's content.

event_type: string

A string representing the type of event to be sent.

id: string

The request ID.

room_id: string

A string representing the room to send the event to.

txn_id: string

A string representing the transaction ID for this event.

Clients should generate an ID unique across requests with the same access token; it will be used by the server to ensure idempotency of requests.

Get its request type.

Methods

  • free(): void
  • Returns void

Generated using TypeDoc