Class: Channel

Photon.Chat.Channel()

Represents chat channel.

Constructor

new Channel()

Methods

clearMessages()

Clears messages cache.

getLastId() → {number}

Returns ID of the last message received.

Returns:
Last message ID.
Type
number

getMessages() → {Array.<Photon.Chat.Message>}

Returns messages cache.

Returns:
Array of messages.
Type
Array.<Photon.Chat.Message>

getName() → {string}

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

Returns:
Channel name.
Type
string

isPrivate() → {boolean}

Returns true if channel is private.

Returns:
Channel private status.
Type
boolean