def send(packet)
            id = Common.packet_to_id(packet)
            data = [id, [packet.to_a]].to_msgpack

            @stream.write Common.encode_u16(data.length)
            @stream.write data
        end
def send(packet)
            id = Common.packet_to_id(packet)
            data = [id, [packet.to_a]].to_msgpack

            @stream.write Common.encode_u16(data.length)
            @stream.write data
        end
Transmit a packet over the connection