Sha256: f111d02952951d14db6453f417d16627f80ab66b1bda8e735663d905f241c540

Contents?: true

Size: 532 Bytes

Versions: 39

Compression:

Stored size: 532 Bytes

Contents

module Slack
  module RealTime
    module Api
      module Ping
        #
        # Clients should try to quickly detect disconnections, even in idle periods, so that users can easily tell the
        # difference between being disconnected and everyone being quiet. Not all web browsers support the WebSocket
        # ping spec, so the RTM protocol also supports ping/pong messages.
        #
        def ping(options = {})
          send_json({ type: 'ping', id: next_id }.merge(options))
        end
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
slack-ruby-client-bhe-0.5.5 lib/slack/real_time/api/ping.rb
slack-ruby-client-bhe-0.5.4 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.14.4 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.14.3 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.14.2 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.14.1 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.14.0 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.13.1 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.13.0 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.12.0 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.11.1 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.11.0 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.10.0 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.9.1 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.9.0 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.8.1 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.8.0 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.7.9 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.7.8 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.7.7 lib/slack/real_time/api/ping.rb