fix event

fix the disconnect event.
add a interface IsConnect whoever the socket is connecting.