lib/websocket_rails/channel_manager.rb in websocket-rails-0.3.0 vs lib/websocket_rails/channel_manager.rb in websocket-rails-0.4.0
- old
+ new
@@ -24,7 +24,13 @@
def [](channel)
@channels[channel] ||= Channel.new channel
end
+ def unsubscribe(connection)
+ @channels.each do |channel_name, channel|
+ channel.unsubscribe(connection)
+ end
+ end
+
end
end