Create the complete backend infrastructure for a real-time chat application. This project will primarily focus on handling user connections, efficient message broadcasting, secure private messaging, and persistent chat history storage. It will leverage WebSockets for instantaneous real-time communication and a NoSQL database for flexible message storage, demonstrating proficiency in building highly interactive and responsive backend services capable of handling concurrent users.