Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8272679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:12:35+00:00 2026-06-08T07:12:35+00:00

I am developing a php based website. i want to implement Facebook chat in

  • 0

I am developing a php based website. i want to implement Facebook chat in it.

My question is that how i can use XMPP with BOSH. what is the relation of XMPP and BOSH.

is there any sample source code to get idea how to implement Facebook chat using library such as JAXL or strophe.js

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T07:12:36+00:00Added an answer on June 8, 2026 at 7:12 am

    My question is that how i can use XMPP with BOSH. what is the relation
    of XMPP and BOSH.

    BOSH stands for bidirectional stream over http. It is a specification designed for running XMPP over HTTP, but can be used to run any underlying tcp level protocol over http.

    BOSH basically plays within the limitations of the browser i.e. one cannot make more than 2 requests to a particular domain at a time. And within these limits, BOSH is able to emulate a full blown bidirectional pipe between server and the client. Payload can be transmitted using this virtual pipe and user experience wise it is as good as real-time.

    Traditionally BOSH is emulated using a technique called long-polling. However, i have successfully been able to run the same using jsonp and websockets (if available).

    is there any sample source code to get idea how to implement Facebook
    chat using library such as JAXL or strophe.js

    I bet you will find enough sample examples of a web chat application using strophe.js. All you need is a bosh connection manager like punjab or ebosh (one i wrote), which can connect to any xmpp/jabber c2s endpoint.

    As far as JAXL sample example goes, here are a few that you can directly use: https://github.com/abhinavsingh/JAXL/tree/master/app Look specifically at boshchat.php, boshMUCchat.php and preFetchBOSH.php examples which demonstrate the BOSH side support of Jaxl library.

    These examples can be used if you are expecting moderate traffic. For a heavy traffic based application i would seriously recommend using a strophe.js based solution.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a tool that creates PHP classes based on tables in my
I'm developing a PHP website that uses url routing. I'd like the site to
I'm developing a PHP-based application that requires internationalization (i18n) support. I'm using Smarty 3
I'm developing using the Facebook PHP SDK. I wanted to make it so that
I have been developing our php based site on a development box that was
I am developing an website in php where user can upload csv file. after
I am developing a PHP web based data entry tool with MySQL as the
My duty is to pick up and continue developing PHP website for a small
I'm an engineering student and I'm developing a simple software based on HTML, PHP
I am currently developing a website and i need that the pages loads dynamically

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.