module Restforce::Concerns::Streaming

def legacy_subscribe(topics, options = {}, &block)

Returns a Faye::Subscription

block - A block to run when a new message is received.
topics - The name of the PushTopic channel(s) to subscribe to.

Public: Subscribe to a PushTopic
def legacy_subscribe(topics, options = {}, &block)
  topics = Array(topics).map { |channel| "/topic/#{channel}" }
  subscription(topics, options, &block)
end