Added an example code snippet for reading and parsing incoming socket data