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

  • Home
  • SEARCH
  • 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 8164907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:25:10+00:00 2026-06-06T19:25:10+00:00

I am going to develop a live help chat system with the basic features

  • 0

I am going to develop a live help chat system with the basic features being similar to http://www.providesupport.com and http://www.liveperson.com/

I am unsure how to structure the application. I want to have a web based chat script for an end user to interact with our support staff who will use an admin console to manage different chats. I am planning on using a mix of PHP/JavaScript/AJAX to implement the end users chat and Java to build the admin panel. There will also be a MySQL database to store settings/chats etc.

The key features I want to include are:
– Support for multiple concurrent chats
– Multiple operators
– Transfer chats between operators
– “User is typing” notifications
– Logging of each chat into database
– Online/Offline mode

I have come up with three possible approaches for the basic architecture of the system, particularly in how the chat element works. I am unsure which approach is best and was hoping you could point me in the correct direct and point out any advantages/disadvantages I have missed.

Approach 1 – Static HTML files for chat

The PHP user chat box writes to and reads from a HTML file which contains the chat. Then reload this file every few seconds to ensure updates are shown. The Java admin end would also do something similar.

Advantages:
– Messages are logged throughout.
– Operators could manage different chats by loading different HTML files
– Different operators can load the same chat, allowing transfer of users

Disadvantages
– User is typing notifications would need some separate method

Approach 2 – MySQL database to store chats

The chat would be written to a MySQL database as each new message is typed. The admin and user end would then check for updates in the database every few seconds and reload the chat windows if it has occurred.

Advantages:
– Messages are logged throughout as each message is stored in DB.
– Operators could manage different chats through different SQL queries
– Different operators can load the same chat, allowing transfer of users

Disadvantages:
– User is typing notifications would need some separate method
– The database would get extremely large
– Constantly querying the database could have high server load and become slow with a large table

Approach 3 – Direct socket connections

The PHP web end has a socket connection directly to the Java admin client that they are talking to. All the chat data goes through this, then when the chat is finished, it is written to the database to be stored.

Advantages:
– Would be quick as each party would know when a new message is received
– “User is typing” messages could be sent over the socket connection
– Data is logged

Disadvantages:
– Socket connection could be lost, therefore ending the chat.
– Not sure how transfer of chat between operators would work

Summary

So, to summarize, which method would be best? Is there a better methods that I have not thought of? I have looked at HTML5 web sockets but I need a good browser compatibility.

In addition to this, how would I achieve having an online/offline indicator depending on whether admin users are logged in?

I am after a more generic overview as opposed to code etc?

Thanks for your help.

  • 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-06T19:25:11+00:00Added an answer on June 6, 2026 at 7:25 pm

    Have you considered socket.io in order to get a real cross-browser socket?

    Otherwise you could use something that’s already developed for this, instead of re-inventing the wheel, like an XMPP JS library that already exists out there.

    If you want to implement stuff yourself, your best shot is ajax long-polling, don’t have your page reload constantly, rather provide some sort of webservice, and use JS (or jQuery) to communicate with it, and transmit only chat-related data.

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

Sidebar

Related Questions

I am going to develop a http service and an application as its client
I'm going to develop a collaborative site, and one of the features will be
I'm going to develop a POS system for medium scale company and the requirement
I am going to develop a WCF service that connects back-end system with two
i 'm going to develop an app like a chat messenger Everytime i send
I'm going to develop a java web start application, which need to access protected
I am going to develop Android application which needs to read x,y,z coordinates of
I'm going to develop a Firefox extension which uses some Java classes. The extension
I am going to develop a database layer to expose set of functionality that
I am going to develop a new website with asp.net 3.5 and LinqToSQL. For

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.