Publish packet to Redis server before encoding packet because the encoding process removes the binary part of the original packet