class LavinMQ::MQTT::SubscriptionTree(T)

Defined in:

lavinmq/mqtt/subscription_tree.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def any?(filter : String) : Bool #

Returns wether any subscription matches the given filter


[View source]
def each_entry(topic : String, &block : T, UInt8 -> _) #

[View source]
def each_entry(&block : T, UInt8 -> _) #

[View source]
def empty? #

[View source]
def inspect #
Description copied from class Object

Returns an unambiguous and information-rich string representation of this object, typically intended for developers.

This method should usually not be overridden. It delegates to #inspect(IO) which can be overridden for custom implementations.

Also see #to_s.


[View source]
def subscribe(filter : String, session : T, qos : UInt8) #

[View source]
def unsubscribe(filter : String, session : T) #

[View source]