Peer-to-peer chat with AsyncSocket class

I want to use the AsyncSocket class for peer-to-peer chat. I was able to create an example chat application where one user can communicate with another user, sending messages to the server, and then from the server to another user (s) using it, but I find it somehow difficult to manage sockets installed in the peer chat and mixing in delegates of servers and clients provided by the AsyncSocket class, when both are implemented in the same node.

I tried to find some sample code on top of the network that uses the AsyncSocket class to establish peer -to -peer chat, but could not find anyone!

Also, I want to know if it would be useful to use the AsyncSocket class for my requirements (creating peer-to-peer chats, video conferencing, voice chat) or is there a better option?

Thanks for any help

Miraaj

+3
source share

Source: https://habr.com/ru/post/1726469/


All Articles