Class: Protocol::MQTT::Packet::Pingreq
Overview
PINGREQ (§3.12) — keepalive from client. No body.
Constant Summary
collapse
- TYPE_ID =
PINGREQ
AUTH, CONNACK, CONNECT, DISCONNECT, PINGREQ, PINGRESP, PUBACK, PUBCOMP, PUBLISH, PUBREC, PUBREL, SUBACK, SUBSCRIBE, UNSUBACK, UNSUBSCRIBE
Class Method Summary
collapse
Instance Method Summary
collapse
decode, decode_from_body, #encode, encode_packet, #flags_nibble, register
Class Method Details
.decode_body(_reader, flags:, version:) ⇒ Object
18
19
20
|
# File 'lib/protocol/mqtt/packet/pingreq.rb', line 18
def self.decode_body(_reader, flags:, version:)
new
end
|
Instance Method Details
#==(other) ⇒ Object
Also known as:
eql?
23
24
25
|
# File 'lib/protocol/mqtt/packet/pingreq.rb', line 23
def ==(other)
other.is_a?(Pingreq)
end
|
#encode_body(_version) ⇒ Object
13
14
15
|
# File 'lib/protocol/mqtt/packet/pingreq.rb', line 13
def encode_body(_version)
"".b.freeze
end
|
#hash ⇒ Object
29
30
31
|
# File 'lib/protocol/mqtt/packet/pingreq.rb', line 29
def hash
self.class.hash
end
|