abstract class MQTT::Transport

Direct Known Subclasses

Defined in:

mqtt/transport.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

abstract def close! : Nil #

[View source]
abstract def closed? : Bool #

[View source]
def error : Exception | Nil #

[View source]
def on_close(&on_close : -> ) #

[View source]
def on_message(&on_message : Bytes -> ) : Nil #

[View source]
def on_tokenize(&on_tokenize : IO::Memory -> Int32) #

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

[View source]
abstract def start : Nil #

Begins consuming data from the remote host. Called by the client once its callbacks have been configured so that no data can arrive before there is something able to process it


[View source]