php - How to implement facebook chat using XMPP and BOSH -


i developing php based website. want implement facebook chat in it.

my question how can use xmpp bosh. relation of xmpp , bosh.

is there sample source code idea how implement facebook chat using library such jaxl or strophe.js

my question how can use xmpp bosh. relation of xmpp , bosh.

bosh stands bidirectional stream on http. specification designed running xmpp on http, can used run underlying tcp level protocol on http.

bosh plays within limitations of browser i.e. 1 cannot make more 2 requests particular domain @ time. , within these limits, bosh able emulate full blown bidirectional pipe between server , client. payload can transmitted using virtual pipe , user experience wise real-time.

traditionally bosh emulated using technique called long-polling. however, have been able run same using jsonp , websockets (if available).

is there sample source code idea how implement facebook chat using library such jaxl or strophe.js

i bet find enough sample examples of web chat application using strophe.js. need bosh connection manager punjab or ebosh (one wrote), can connect xmpp/jabber c2s endpoint.

as far jaxl sample example goes, here few can directly use: https://github.com/abhinavsingh/jaxl/tree/master/app @ boshchat.php, boshmucchat.php , prefetchbosh.php examples demonstrate bosh side support of jaxl library.

these examples can used if expecting moderate traffic. heavy traffic based application recommend using strophe.js based solution.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -