1
What is necessary to develop a Chat system, in which two people receive messages in real-time, and how to establish a connection between users' computers?
The front-end is already developed, but it lacks the back-end where there should be the connection and send the message to the program that is on the other computer.
- TCP or HTTP connection.
- Java SE
- Peer-To-Peer
- Chat with only 2 users
My friends and I in college set up a database just to store the messages, so we put the messages on a list that was updated every second. If you’re thinking of this app just to play, it breaks a branch, now you think of something bigger, like a Whatsapp or the late MSN, then I no longer know how it works.
– Leao Felipe
Does this chat have a central server? Or is it totally Peer-to-peer?
– Victor Stafusa
I’d like to totally do peer-to-peer
– Lucas Caresia
Java EE or Java SE ?
– Fábio Miranda
If it’s totally peer-to-peer, how would a chat with more than 2 users?
– Victor Stafusa
Java EE and would only be 2 users per chat(At first I want to make only two users using the program only for testing).
– Lucas Caresia
I tried to modify my comment, but had already exceeded the time limit, correcting Java SE.
– Lucas Caresia
Gives a search in Java Websockets. The following are two examples: http://blog.caelum.com.br/websockets-html5-java-com-jetty-web-em-tempo-real/ http://www.devmedia.com.br/java-websockets-introducao/30443
– user33164