class MQTT::Packet::Subscribe
def parse_body(buffer)
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