venomous0x/WhatsAPI — pull request #446 by pastoso (2013-08-25 21:28:18+00:00)
Title: close socket and fire onClose on feof while reading. Fire onConnectError...

... if fsockopen fails.