class Ably::Realtime::Channel::ChannelProperties

Describes the properties of the channel state.

Attributes

attach_serial[R]

Starts unset when a channel is instantiated, then updated with the channelSerial from each {Ably::Realtime::Channel::STATE.Attached} event that matches the channel. Used as the value for {Ably::Realtime::Channel#history}.

@spec CP2a

@return [String]

channel[R]

{Ably::Realtime::Channel} this object associated with

@return [Ably::Realtime::Channel]

channel_serial[RW]

ChannelSerial contains the channelSerial from latest ProtocolMessage of action type Message/PresenceMessage received on the channel.

@spec CP2b, RTL15b

@return [String]

Public Class Methods

new(channel) click to toggle source
# File lib/submodules/ably-ruby/lib/ably/realtime/channel/channel_properties.rb, line 30
def initialize(channel)
  @channel = channel
end

Public Instance Methods

set_attach_serial(attach_serial) click to toggle source

@api private

# File lib/submodules/ably-ruby/lib/ably/realtime/channel/channel_properties.rb, line 35
def set_attach_serial(attach_serial)
  @attach_serial = attach_serial
end