added socket.io connection event