module Slack::RealTime::Api::Ping
Public Instance Methods
ping(options = {})
click to toggle source
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.
# File lib/slack/real_time/api/ping.rb, line 13 def ping(options = {}) send_json({ type: 'ping', id: next_id }.merge(options)) end