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

Commit

Permalink
add close callback to realtime #41
Browse files Browse the repository at this point in the history
  • Loading branch information
aki017 committed Feb 10, 2017
1 parent e3a47a6 commit 05d4e65
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/slack/realtime/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def start
end

ws.on :close do |event|
@callbacks[:close].each { |c| c.call } unless @callbacks[:close].nil?
EM.stop
end
end
Expand Down

0 comments on commit 05d4e65

Please sign in to comment.