Setting up Leader election in chat nodes