compatible with socket.io-client 1.2.0
add connected method