class

LavinMQ::MQTT::Sessions

Inherits Reference < Object

Constructors

new(vhost : VHost)
Source

Instance methods

[](client_id : String) : Session
Source
[]?(client_id : String) : Session | Nil
Source
declare(client : Client) : Session | Nil

Returns nil if creating the session would exceed the vhost's max-queues limit. An existing session is always returned, reusing one consumes no new resource.

Source