Method: MQTT::Packet::Unsubscribe#validate_flags
- Defined in:
- lib/mqtt/packet.rb
#validate_flags ⇒ Object
Check that fixed header flags are valid for this packet type
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 |