module Slack::Web::Api::Endpoints::Rtm
Public Instance Methods
rtm_connect(options = {})
click to toggle source
Starts a Real Time Messaging session.
@option options [Object] :batch_presence_aware
Only deliver presence events when requested by subscription. See presence subscriptions.
@see api.slack.com/methods/rtm.connect @see github.com/slack-ruby/slack-api-ref/blob/master/methods/rtm/rtm.connect.json
# File lib/slack/web/api/endpoints/rtm.rb, line 15 def rtm_connect(options = {}) post('rtm.connect', options) end
rtm_start(options = {})
click to toggle source
Starts a Real Time Messaging session.
@option options [Object] :batch_presence_aware
Only deliver presence events when requested by subscription. See presence subscriptions.
@option options [Object] :include_locale
Set this to true to receive the locale for users and channels. Defaults to false.
@option options [Object] :mpim_aware
Returns MPIMs to the client in the API response.
@option options [Object] :no_latest
Exclude latest timestamps for channels, groups, mpims, and ims. Automatically sets no_unreads to 1.
@option options [Object] :no_unreads
Skip unread counts for each channel (improves performance).
@option options [Object] :simple_latest
Return timestamp only for latest message object of each channel (improves performance).
@see api.slack.com/methods/rtm.start @see github.com/slack-ruby/slack-api-ref/blob/master/methods/rtm/rtm.start.json
# File lib/slack/web/api/endpoints/rtm.rb, line 36 def rtm_start(options = {}) post('rtm.start', options) end