Hierarchy

  • MessageEvent

Constructors

  • Parameters

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

    Returns MessageEvent

Properties

channelName?: string

The channel which the message was published

channelTopic?: string

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

channelType?: RtmChannelType

Which channel type, RtmChannelType_STREAM or message

customType?: string

The custom type of the message

message?: string

The payload

messageLength?: number

The payload length

messageType?: RtmMessageType

Message type

publisher?: string

The publisher

timestamp?: number

RTM server UTC time