Added socket.io events