You can easily create a basic chat application using socket.io on Glitch.
Here’s a working example of a chat application build on Glitch: Socket.io Chat App.
Once you’re done with the basics of the chat application, you can proceed further:
- Firstly, add friends, to implement this feature you’ll, of course, have to set up a user-login/authentication system, so each user has his/her own profile which can be managed. And for that, you’ll also need a database, precisely, a good database.
- Secondly, allowing users to chat with themselves, as said earlier, refer to the example of the chat application.
Lastly, you cannot build a social media application with focusing or prioritizing the chat component.
I’d recommend you to focus on social component first, and further move on and implement the chat component later after you’re done with the social component.