class MQTT::Transport::TCP

Defined in:

mqtt/transport/tcp.cr

Constructors

Instance Method Summary

Instance methods inherited from class MQTT::Transport

close! : Nil close!, closed? : Bool closed?, error : Exception | Nil error, on_close(&on_close : -> ) on_close, on_message(&on_message : Bytes -> ) : Nil on_message, on_tokenize(&on_tokenize : IO::Memory -> Int32) on_tokenize, send(message) : Nil send

Constructor methods inherited from class MQTT::Transport

new new

Constructor Detail

def self.new(host, port = MQTT::DEFAULT_PORT, tls_context : OpenSSL::SSL::Context::Client | Nil = nil, dns_timeout : Int32 = 10, connect_timeout : Int32 = 10) #

[View source]

Instance Method Detail

def close! : Nil #

[View source]
def closed? : Bool #

[View source]
def send(message) : Nil #

[View source]