Fix #5, auto detect the packet type from packet data, if it contains NSData, then treat it as binary