How to use XMPP over BOSH

后端 未结 2 1520

So im a little confused about what excatly BOSH is. Is it a way to interact with the XMPP server using http? For example openfire uses BOSH at http://domain.com:7070/http-bind/<

相关标签:
2条回答
  • 2021-02-13 15:40

    In simple terms, BOSH is simulating a persistent connection between client and XMPP server using HTTP calls.

    The client makes an HTTP(s) request to the server, if the server does not have anything to send to the client, the server holds on to the connection for a configured amount of time (say 30 seconds). After 30 seconds, the server returns the HTTP request initiated by the client. Instantly the client makes another HTTP request and this goes on.

    Using this approach, the client simulates a persistent session.

    0 讨论(0)
  • 2021-02-13 15:41

    BOSH is defined by XEP-206.

    0 讨论(0)
提交回复
热议问题