Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

Store realtime object to instance variable. #57

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open

Store realtime object to instance variable. #57

wants to merge 2 commits into from

Conversation

mazgi
Copy link

@mazgi mazgi commented Jun 10, 2017

This feature enable both following:

https://github.com/aki017/slack-ruby-gem/blob/dev/examples/rtm.rb#L7-L11

rtm = client.realtime
rtm.on :message do |m|
  p m
end
rtm.start

and

client.realtime.on :message do |m|
  p m
end
client.realtime.start

@ioquatix
Copy link

How does this work if you want multiple connections?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants