class
Crystalforce::StreamingClient
- Crystalforce::StreamingClient
- Reference
- Object
Defined in:
crystalforce/streaming.crConstructors
Instance Method Summary
- #disconnect
-
#subscribe(channels : Array(String), replay : Hash(String, Int64) | Nil = nil, &block : JSON::Any -> )
Subscribe to channels and yield messages
-
#subscribe(channel : String, replay_id : Int64 = -1, &block : JSON::Any -> )
Subscribe to a single channel
Constructor Detail
def self.new(instance_url : String, access_token : String, api_version : String | Nil = nil)
#
Instance Method Detail
def subscribe(channels : Array(String), replay : Hash(String, Int64) | Nil = nil, &block : JSON::Any -> )
#
Subscribe to channels and yield messages
def subscribe(channel : String, replay_id : Int64 = -1, &block : JSON::Any -> )
#
Subscribe to a single channel