Method: MQTT::Packet::Unsubscribe#parse_body
- Defined in:
- lib/mqtt/packet.rb
#parse_body(buffer) ⇒ Object
Parse the body (variable header and payload) of a packet
919 920 921 922 923 |
# File 'lib/mqtt/packet.rb', line 919 def parse_body(buffer) super(buffer) @id = shift_short(buffer) @topics << shift_string(buffer) while buffer.bytesize > 0 end |