Fix the packet encode, 0 for string, 1 for binary
Add dispatch queue to transport