A chat application API allows users to send and receive messages in real-time using a server-side language and a websocket library like Socket.io. In this project, you will create a basic chat application API using Java and Socket.io.
Create a Basic Chat API
Requirements
- A way for users to send and receive messages in real-time using Socket.io
- A way to store the messages in a database
- A way to retrieve the messages from the database and display them to users
Bonus
- Can you add authentication and authorization to the API, so that only authorized users can access the chat feature?
- Can you add support for group chats, where multiple users can participate in the same chat room?
Hint
You can use a library like Socket.io to implement the websocket functionality for this project.