Detect Connection Abort or Disconnect
Detect Connection Abort or Disconnect

In PHP's fsockopen there is no direct way to detect the cause of disconnection.
The problem is that the script will keep up and running EVEN IF YOU UNPLUGGED YOUR NETWORK!
This condition will check if there is still connectivity to the server before attempting to read any data.
TylerLH/Chat-API,taniele/WhatsAPI-Official,creativeprogramming/WhatsAPI-Official,moazam1/Chat-API,cbiancucci/Chat-API,Chonlakant/Chat-API,januslinhc/Chat-API,Medanaresh/Chat-API,tiagocardosos/Chat-API,FebriPratama/Chat-API,wehmoen/Chat-API,kasoprecede47/Chat-API,ardani/Chat-API,mkwsra/Chat-API,RAJUMD/msgapi,Ombogo/Api-_Chat,androidworldbh/WhatsAPI-Official,syzer/Chat-API,fhferreira/Chat-API,HKMOpen/WhatsAPI-Official,prix911/Chat-API,lesander/Chat-API,thiagocarlossilverio/Chat-API,knoOwn/abc123,raniongolu/Chat-API,leobaiano/WhatsAPI-Official,Arrogance/Chat-API,gabeio/Chat-API,vinod1988/Chat-API,seekshiva/WhatsAPI-Official,caionorder/Chat-API,alxcancado/Chat-API,intari/Chat-API,herrlosxxx/Chat-API,lacripta/Chat-API,vladikoff/Chat-API,hendisantika/Chat-API,ken-muturi/Chat-API,lynnUg/Chat-API,easternmie/Chat-API,nandadotexe/Chat-API,sangharshgautam/Chat-API,circleride/Chat-API,maitret/Chat-API,sharoni474/Chat-API,ansani/Chat-API,xkmato/Chat-API,pridemusvaire/Chat-API,andres18281/Chat-API,practisis/Chat-API,NellenNo/Chat-API,kwameboame/Chat-API,iamdharmesh/WhatsAPI-Official,kimenye/WhatsAPI-Official,SunPj/WhatsAPI-Official,deivisonarthur/WhatsAPI-Official,gusseppe/Chat-API,prayashm/Chat-API,cincarnato/Chat-API,xcodez/Chat-API,royopa/Chat-API,Nebojsaa/Chat-API,andrebellafronte/WhatsAPI-Official,jiep/WhatsAPI-Official,MauroJr/Chat-API,knozis/Chat-API