How is tcp chat supported in chat?

I implemented an XMPP chat client with the Facebook Chat API, it can log in and chat. But I found that Facebook's XMPP server does not support XEP-0199. Therefore, if the client does not send or receive a message for a long time (tcp connection is idle), the client will be disconnected.

How does Facebook support TCP chat?

+4
source share
1 answer

In XMPP, there is the practice of sending one space at a time. It supports TCP connection.

The XMPP-Core 4.6 section describes the problems associated with this.

+4
source

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


All Articles