Sha256: 2c989d09ad81c1ff71ea309b80e61cdbd3371e2a8dc362fed6946af6017d71a6

Contents?: true

Size: 1.53 KB

Versions: 2

Compression:

Stored size: 1.53 KB

Contents

# This file was auto-generated by lib/tasks/web.rake

module Slack
  module Web
    module Api
      module Endpoints
        module Rtm
          #
          # This method begins a Real Time Messaging API session and reserves your application a specific URL with which to connect via websocket.
          #
          # @see https://api.slack.com/methods/rtm.connect
          # @see https://github.com/dblock/slack-api-ref/blob/master/methods/rtm/rtm.connect.json
          def rtm_connect(options = {})
            post('rtm.connect', options)
          end

          #
          # This method begins a Real Time Messaging API session and reserves your application a specific URL with which to connect via websocket.
          #
          # @option options [Object] :simple_latest
          #   Return timestamp only for latest message object of each channel (improves performance).
          # @option options [Object] :no_unreads
          #   Skip unread counts for each channel (improves performance).
          # @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.
          # @see https://api.slack.com/methods/rtm.start
          # @see https://github.com/dblock/slack-api-ref/blob/master/methods/rtm/rtm.start.json
          def rtm_start(options = {})
            post('rtm.start', options)
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slack-ruby-client-0.9.0 lib/slack/web/api/endpoints/rtm.rb
slack-ruby-client-0.8.1 lib/slack/web/api/endpoints/rtm.rb