class MQTT::Packet::Subscribe

def parse_body(buffer)

Parse the body (variable header and payload) of a packet
def parse_body(buffer)
  super(buffer)
  @id = shift_short(buffer)
  @topics = []
  while buffer.bytesize > 0
    topic_name = shift_string(buffer)
    topic_qos = shift_byte(buffer)
    @topics << [topic_name, topic_qos]
  end
end