class MQTT::Packet::Disconnect
Class representing an MQTT
Client
Disconnect
packet
Public Class Methods
new(args = {})
click to toggle source
Create a new Client
Disconnect
packet
Calls superclass method
MQTT::Packet::new
# File lib/qubitro-mqtt/packet.rb, line 1006 def initialize(args = {}) super(args) end
Public Instance Methods
parse_body(buffer)
click to toggle source
Check the body
Calls superclass method
MQTT::Packet#parse_body
# File lib/qubitro-mqtt/packet.rb, line 1011 def parse_body(buffer) super(buffer) return if buffer.empty? raise ProtocolException, 'Extra bytes at end of Disconnect packet' end