Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
struct
MQTT::Protocol::Connect
Inherits
MQTT::Protocol::Packet
<
Struct
<
Value
<
Object
Constants
TYPE = 1_u8
Constructors
new
(client_id :
String
, clean_session :
Bool
, keepalive :
UInt16
, username :
Nil
|
String
, password :
Slice
(
UInt8
) |
Nil
, will :
MQTT::Protocol::Will
|
Nil
, version :
UInt8
= 4)
Source
Class methods
from_io
(io :
MQTT::Protocol::IO
, flags :
Flags
, _remaining_length)
Source
Instance methods
clean_session?
Source
client_id
Source
keepalive
Source
password
Source
to_io
(io)
ameba:disable Metrics/CyclomaticComplexity
Source
username
Source
version
Source
will
Source