- detect socket connection state(#109)