class NATS::Client

Defined in:

nats/client.cr
nats/client/connection.cr
nats/client/subscription.cr
nats/client/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def close_connection : Void #

[View source]
def connect(opts : Hash) : Void #

[View source]
def connected? : Bool #

[View source]
def connecting? : Bool #

[View source]
def disconnected? : Bool #

[View source]
def disconnecting? : Bool #

[View source]
def process_error(message : String) : Void #

[View source]
def process_info(info : String) : Void #

[View source]
def process_msg(group : String, subscription_id : UInt64, reply : String, message : Bytes) : Void #

[View source]
def process_ping : Void #

[View source]
def process_pong : Void #

[View source]
def publish(channel : String, message : String = EMPTY_MESSAGE, reply : String | Nil = nil) : Void #

[View source]
def reconnecting? : Bool #

[View source]
def server_info : Hash(String, Bool | String | UInt32)? #

[View source]
def status : UInt8 #

[View source]
def subscribe(channel : String, id : UInt64 | Nil = nil, options : Subscription::OptionsHash = Subscription::OptionsHash.new, &callback : Subscription::CallbackProc) : UInt64 #

[View source]
def unsubscribe(id : UInt64) : Void #

[View source]