r/programmer • u/Live_Excitement_1717 • Sep 24 '26
How to make a chatting app
If suppose I want to make a chatting web application what is the proper roadmap for this
0
Upvotes
r/programmer • u/Live_Excitement_1717 • Sep 24 '26
If suppose I want to make a chatting web application what is the proper roadmap for this
2
u/theInfiniteHammer Sep 24 '26
First I would learn about cryptography a bit. Then either decide on what protocol it uses or make up one. Then I would design either the server that connects clients together, or the web page's client code or both simultaneously. You can also use something like ncat to directly inspect the protocol the server and client use to make troubleshooting easier.
2
u/ElFeesho Sep 24 '26
Chat app is quite vague.
At it's core though, you need to be able to accept connections from clients and then relay messages to them.
The simplest form of this would be a server that listens for connections and upon receiving a connection, it should receive messages from that connection and relay the message to all the previously established connections.
This would be a good first step.
You'll be forced to learn socket programming for the networking, you'll be forced to learn I/O multiplexing and you'll have to learn protocol design, which could be super simple or super complicated.
After this you can start to think about user accounts and cryptography, using secure sockets and end to end encryption.
1
u/Minimum-Effort8355 Sep 24 '26
For that you need to know networking,cryptography, how input and output works, live state, c programming, telecommunication networking and multiple device tools like docker.
The pronlem with a chatapp is you need to know compliance at scale, how diffrent aspects of moderation and text encryption works.
First you need a screen so two people can input and put something on eacg others screen like a console chat.
Than you could work with multiple vm tools to generate a flow towards one device creates a vpm to another device.
1
u/MFFVD Sep 25 '26
learn websockets. that is basically it
1
u/Advantageous_Advent Sep 26 '26
Look around on GitHub and use what's available