Sha256: 94ea3a58f39851b67acf8b17f9e82c66d944f6dd267c2683279b69a42e022fa9

Contents?: true

Size: 616 Bytes

Versions: 37

Compression:

Stored size: 616 Bytes

Contents

# Toplevel Pubnub module.
module Pubnub
  # Holds presence functionality, beware, most of presence functionality is
  # held by SubscribeEvent
  class Presence < SubscribeEvent
    include Concurrent::Async
    include Pubnub::Validator::Presence

    def initialize(options, app)
      @event = :presence
      @telemetry_name = :l_pres
      super
    end

    def format_channels
      @channel = Formatter.format_channel(@channel || @channels, true)
      @channel = @channel.map { |c| c + '-pnpres' }
    end

    private

    def current_operation
      Pubnub::Constants::OPERATION_PRESENCE
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
pubnub-5.5.0 lib/pubnub/events/presence.rb
pubnub-5.4.0 lib/pubnub/events/presence.rb
pubnub-5.3.5 lib/pubnub/events/presence.rb
pubnub-5.3.4 lib/pubnub/events/presence.rb
pubnub-5.3.3 lib/pubnub/events/presence.rb
pubnub-5.3.2 lib/pubnub/events/presence.rb
pubnub-5.3.1 lib/pubnub/events/presence.rb
pubnub-5.3.0 lib/pubnub/events/presence.rb
pubnub-5.2.2 lib/pubnub/events/presence.rb
pubnub-5.2.1 lib/pubnub/events/presence.rb
pubnub-5.2.0 lib/pubnub/events/presence.rb
pubnub-5.1.2 lib/pubnub/events/presence.rb
pubnub-5.1.1 lib/pubnub/events/presence.rb
pubnub-5.1.0 lib/pubnub/events/presence.rb
pubnub-5.0.0 lib/pubnub/events/presence.rb
pubnub-4.8.0 lib/pubnub/events/presence.rb
pubnub-4.7.1 lib/pubnub/events/presence.rb
pubnub-4.7.0 lib/pubnub/events/presence.rb
pubnub-4.6.2 lib/pubnub/events/presence.rb
pubnub-4.6.1 lib/pubnub/events/presence.rb