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-0.7.6 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.7.5 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.7.4 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.7.3 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.7.2 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.7.1 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.7.0 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.6.0 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.5.4 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.5.3 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.5.2 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.5.1 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.5.0 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.4.0 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.3.1 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.3.0 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.2.1 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.2.0 lib/slack/real_time/api/ping.rb
slack-ruby-client-0.1.0 lib/slack/real_time/api/ping.rb