How to implement Web chat

Source: Internet
Author: User

If you don't have a concept with web chat, the best practice might be: Openfire+jsjac

OpenFire is a Java-made open source XMPP server, and Jsjac is an open-source, web-version XMPP client made by JavaScript.

  1. Open the HTTP binding and Bosh in the admin interface of OpenFire and open "in-band account Registration".
  2. Copy the Jsjac simpleclient.html and jsjac.js to the Resources/spank directory of OpenFire
  3. If your OpenFire HTTP port is open on port 9090, then access: http://192.168.0.100:9090/simpleclient.html
  4. On the page HTTP base fill in: http://192.168.0.100:9090/http-bind/, write a random account password, tick "register new account", you can register and log in.
  5. Do not check "register new account" When you log in later, so as not to repeat the registration.

It's so easy to build a web chat system.


PS: If you need to do follow-up development, then resource and mechanism such as XMPP-related knowledge is needed.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.