Class: Channel

Photon.Chat. Channel

Represents chat channel.

new Channel()

Source:
  • Photon-Javascript_v4-0-0-7_Cloud_SDK.js, line 4176

Methods

clearMessages()

Clears messages cache.

Source:
  • Photon-Javascript_v4-0-0-7_Cloud_SDK.js, line 4210

getMessages() → {Photon.Chat.Message[]}

Returns messages cache.

Source:
  • Photon-Javascript_v4-0-0-7_Cloud_SDK.js, line 4202
Returns:
Array of messages.
Type
Photon.Chat.Message[]

getName() → {string}

Returns channel name (counterpart user id for private channel).

Source:
  • Photon-Javascript_v4-0-0-7_Cloud_SDK.js, line 4186
Returns:
Channel name.
Type
string

isPrivate() → {boolean}

Returns true if channel is private.

Source:
  • Photon-Javascript_v4-0-0-7_Cloud_SDK.js, line 4194
Returns:
Channel private status.
Type
boolean