Hierarchy

  • MessageEvent

Constructors

  • Parameters

    • Optional props: Partial<{
          channelName?: string;
          channelTopic?: string;
          channelType?: RTM_CHANNEL_TYPE;
          customType?: string;
          message?: string;
          messageLength?: number;
          messageType?: RTM_MESSAGE_TYPE;
          publisher?: string;
      }>

    Returns MessageEvent

Properties

channelName?: string

The channel which the message was published

channelTopic?: string

If the channelType is RTM_CHANNEL_TYPE_STREAM, which topic the message came from. only for RTM_CHANNEL_TYPE_STREAM

channelType?: RTM_CHANNEL_TYPE

Which channel type, RTM_CHANNEL_TYPE_STREAM or RTM_CHANNEL_TYPE_MESSAGE

customType?: string

The custom type of the message

message?: string

The payload

messageLength?: number

The payload length

messageType?: RTM_MESSAGE_TYPE

Message type

publisher?: string

The publisher