Sexiest peer to peer chat
Before we move on, it’s important that we understand the main tool that we’ll be using.
However I am finding it difficult to code the process of having several clients communicating simultaneously.Then server send to C a message (TCP) that contains info about UDP ip:port of B .- 3rd: Client C will receive that message from server via TCP . Shown in the code below is the methods for the chats that are held within a Client Thread class that regulates the interaction between client and server using threads stored in a shared Array List.
How would you implement the code for multiple peer-to-peer chats here?With the advent of Web RTC and the increasing capacity of browsers to handle peer-to-peer communications in real-time, it’s easier than ever to build real-time applications.