class MQTT::Transport::Websocket

Defined in:

mqtt/transport/websocket.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 : String, path : String, port = nil, tls : HTTP::Client::TLSContext = nil, headers = HTTP::Headers.new) #

[View source]

Instance Method Detail

def close! : Nil #

[View source]
def closed? : Bool #

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

[View source]