Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use XMPP over BOSH

Tags:

xmpp

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?

like image 461
Faisal Abid Avatar asked Mar 06 '10 19:03

Faisal Abid


2 Answers

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.

like image 82
Nitin Bhatt Avatar answered Oct 13 '22 06:10

Nitin Bhatt


BOSH is defined by XEP-206.

like image 44
Joe Hildebrand Avatar answered Oct 13 '22 04:10

Joe Hildebrand