Class: Channel

Photon.Chat. Channel

Represents chat channel.

new Channel()

Source:
  • Photon-Javascript_SDK.js, line 4279

Methods

clearMessages()

Clears messages cache.

Source:
  • Photon-Javascript_SDK.js, line 4316

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

Returns messages cache.

Source:
  • Photon-Javascript_SDK.js, line 4307
Returns:
Array of messages.
Type
Photon.Chat.Message[]

getName() → {string}

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

Source:
  • Photon-Javascript_SDK.js, line 4289
Returns:
Channel name.
Type
string

isPrivate() → {boolean}

Returns true if channel is private.

Source:
  • Photon-Javascript_SDK.js, line 4298
Returns:
Channel private status.
Type
boolean