14

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/

How do i use this URL ? What needs to be done?

Faisal Abid
  • 8,900
  • 14
  • 59
  • 91
  • http://stackoverflow.com/questions/7074021/open-source-xmpp-library-with-bosh-support – K.Kirivarnan Aug 18 '11 at 07:32
  • I am new with XMPP , can anyone please give me the example(link) , to which I follow and understand the XMPP practically. Thanks – Zeb Jun 12 '14 at 08:25

2 Answers2

15

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.

Nitin Bhatt
  • 428
  • 5
  • 13
9

BOSH is defined by XEP-206.

Joe Hildebrand
  • 10,354
  • 2
  • 38
  • 48