Parse text with callback functions on binary and text data packet.