Update Client.php

improved callback reading, solved the unpack error, way less time blocking now, removed some unused vars