Implementing the IM platform in Java

When creating an instant messaging platform in Java, which would be the best way to communicate between clients and the server? I was thinking about RMI or just about connecting a socket ...

Advice please

thank

+3
source share
3 answers

I would use a direct socket connection using a well-known protocol such as XMPP . You can use a library (e.g. smack ) to avoid implementing the entire protocol yourself.

The main advantage of XMPP over RMI or your homemade protocol is the well-established protocol designed specifically for this purpose: IM.

, XMPP, Google Chat (GTALK) Facebook.

+7

, Smack API, XMPP.

0

CometD , . , HTTP- 80, () .

, , CometD.

, Java CometD, ( JavaScript).

0

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


All Articles