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