Skip to content

Many users to one chat room Live Chat

Vahid Hedayati edited this page Nov 3, 2015 · 3 revisions
  1. Video 1.25/3.0.4 LiveChat 1 room multiple users with 1 admin interacting with all

1.25 Many-To-One Live chat:

<chat:liveChat />
<chat:liveChat user="${params.user}" />
<chat:liveChat user="${params.user}" roomName="${params.room }" />
<chat:liveChat user="${params.user}" roomName="${params.room }" name="Users actualName"/>
<chat:liveChat user="${params.user}" roomName="${params.room }" name="Users actualName"  emailAddress="[email protected]" />

If user is not defined it will default their username to be Guest{sessionID} so their username will default to something like: GuestH5d4F9SDF943JGFHSD9DS

With the two methods above liveChat and customerChat, these both directly load up the popup live chat window.

When this is passed to the liveChat tagLib:

ChatCustomerBooking ccb = wsChatBookingService.saveCustomerBooking(bean)

That uses details will now also include their name and their email address stored on the ChatCustomerBooking DB table.

As I mentioned those two fields are what the BOT collects on the older/existing liveChat system.

You could do the same trick with

<chat:customerChat user="${params.user}" roomName="${params.room }"
  name="Users actualName"  emailAddress="[email protected]" />

And it would have the same effect. In the case of customerChat where it has a BOT. The BOT would then return: you are an existing user how can I help you.....

Clone this wiki locally