简体   繁体   中英

How to develop live chat using node js

I want to develop live chat using node js. Can anyone guide me how to do this? The use cases I decided :

  1. User will see a link or icon on the app screen labeled 'Online chat support'.
  2. Clicking on this, chat window will open up. Either it will indicate the name of an agent who is online and ready, or it will indicate that agents are busy, and change that status once an agent is available.
  3. On the agent's side, upto 3 windows (from 3 users) will be opened up before the busy message is generated for further users. This number (3) will be configurable.
  4. The agent will get the name of the screen the user is pinging him from.
  5. Since there will be multiple agents, we need ability to tag a bunch of screens (or apps) to a particular agent.
  6. A load distribution mechanism is required whereby a new query gets routed to any agent who is free, and tagged to that screen or app.
  7. "We need ability to set up an unavailable message for certain time windows – if chat support is only available say between 9 Am and 6 PM IST, we should be able to set up a message for users who log in outside this window that says 'Online chat support is only available between….”"

Please advise how to proceed.

You can use socket.io module for creating live chat. Check this tutorial .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM