Method: MQTT::Packet::Unsubscribe#validate_flags

Defined in:
lib/mqtt/packet.rb

#validate_flagsObject

Check that fixed header flags are valid for this packet type

Raises:



927
928
929
930
# File 'lib/mqtt/packet.rb', line 927

def validate_flags
  return if @flags == [false, true, false, false]
  raise ProtocolException, 'Invalid flags in UNSUBSCRIBE packet header'
end