Class: Pubnub::Heartbeat
- Inherits:
-
SingleEvent
- Object
- Event
- SingleEvent
- Pubnub::Heartbeat
- Includes:
- Concurrent::Async, Formatter, Validator::Heartbeat
- Defined in:
- lib/pubnub/events/heartbeat.rb
Overview
Holds heartbeat functionality
Instance Attribute Summary
Attributes inherited from Event
#callback, #channel, #channel_group, #fresh_clone, #given_options, #group, #idle_timeout, #open_timeout, #origin, #presence_callback, #read_timeout, #ssl, #state, #wildcard_channel, #with_presence
Instance Method Summary collapse
-
#initialize(options, app) ⇒ Heartbeat
constructor
A new instance of Heartbeat.
Methods included from Formatter
channels_for_url, classify_method, encode, format_channel, format_group, format_message, format_presence_channel, format_uuid, make_channel_array, make_uuid_array, params_hash_to_url_params, parse_json
Methods included from Validator::Heartbeat
Methods included from Validator::CommonValidator
#validate_origin, #validate_publish_key, #validate_subscribe_key, #validate_user_id
Methods inherited from Event
#finalized?, #fire, #send_request, #sync?, #uri
Methods included from Event::EFormatter
#format_channels, #format_envelopes, #format_group
Constructor Details
#initialize(options, app) ⇒ Heartbeat
Returns a new instance of Heartbeat.
9 10 11 12 13 |
# File 'lib/pubnub/events/heartbeat.rb', line 9 def initialize(, app) @telemetry_name = :l_pres @event = :heartbeat super end |