class Crystalforce::StreamingClient

Defined in:

crystalforce/streaming.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(instance_url : String, access_token : String, api_version : String | Nil = nil) #

[View source]

Instance Method Detail

def disconnect #

[View source]
def subscribe(channels : Array(String), replay : Hash(String, Int64) | Nil = nil, &block : JSON::Any -> ) #

Subscribe to channels and yield messages


[View source]
def subscribe(channel : String, replay_id : Int64 = -1, &block : JSON::Any -> ) #

Subscribe to a single channel


[View source]