Socket.IO - The onConnect never fired

I’m integrating Socket.IO to my project, but it seems the onConnect method never be fired.
I thought if once connection has been made, it will alert to the client on onConnect method?