In NodeJs, I know that there is way to understand when my socket is connected. By using
socket.once('connect', onConnect);
But I wanted to know if it is possible to understand when the socket starts the connection and if such an event can be listened on the socket?