Added code to refresh the list by a socket.io events.