lib/jugglite/app.rb in jugglite-0.3.0 vs lib/jugglite/app.rb in jugglite-0.4.0
- old
+ new
@@ -76,10 +76,10 @@
end
end
def channels_for_request(request)
# TODO: Sanitize? Check signature?
- channels = Array(request.params["channel"])
+ channels = Array(request.params["channel"].split(","))
channels.map! { |channel| @options[:namespace] + channel }
Set.new(channels)
end
def register_connection(connection)