Hi,

I'm no expert, but i will try to give you what i understand.

for question #1:
1. Is it possible to establish communication (chat) directly between 2
clients?  Thing is that I am trying to develop live chat support so
each operator will have its own “room” so clients/users can choose and
communicate only to choosen operator.  How can I make this scenario?
Is it matter of client side or server side?

Answer #1:
you can do this in many various ways:
1. you can make a customized Server module to handle what you required
2. you can re-use what is already provided like the, chat module, or
the controller module

If I will do it if i dont need to make any new server module, for
simplicity, i will use the 'Controller' module.

make the following scripts:
User-Side:
1. the php+html that will list down your list of support users links
2. the php+html that will initialize a channel thru the "controller"
module based on what you click on the previous page. (NOTE: make a db
table that where you will store the channel name you created and to
what support user if you have multiple users or even none)
3. JS script that will handle the communication between the client-
side and the server side.
4. php  script that will server as middle transaction, if you like to
save entries on the DB for future reviews.

Admin-Side:
1. the php+html fetch the list of channel from the db opened by the
users
2. the php+html that will establish the tot he channel indicated from
the DB, (NOTE: this can be really very similar to the user-side
script)
3. JS script same as the user-side JS
4. php  script that will server as middle transaction, if you like to
save entries on the DB for future reviews. (can be the same script as
the user-side)


for question #2:
2. last question, can ajax push engine/ clients work within php?

Answer #2:
Yes, the Ajax-Push-Engine is an abstraction layer framework that does
not necessary tied to any server-side coding.
Its client side scripting, so in general it can be integrated to any
server-side script/coding as you see fit.

I hope i was able to answer your questions correctly.... but as i
said, I'm no expert but there are totally many ways to implement this.

I've currently implemented a shoutbox on my current project, at first
i tried using the 'Chat' module that comes along with APE, the problem
was that it will not work for multiple instances of the page, like
browser tabs or even new browsers.
I've made a work around by disabling the 'Chat' module, and utilize
the 'Controller' module... since its kinda a generic way of sending
information thre what ever channel is created or existing, it become
very convenient way to implement shoutbox.
I've also copied and modified one of the JS examples either on the
shoutbox example or the chat example, and trim it down.

Again, I hope i was able to help you understand a little.

Regards,

Odie

On Oct 5, 6:01 pm, Minh Nguyen <[email protected]> wrote:
> hi,
> 1. i have the same question about this problem. Anyone can take me an answer
> ???
> 2. Ajax based on JavaScript's client. I think you can do it on any
> languages. (of course, web applications)
>
>
>
> On Mon, Oct 5, 2009 at 4:12 PM, David <[email protected]> wrote:
>
> > Hello,
>
> > Thank you very much for your replay! It helped me a lot!
>
> > I would like to ask you something else:
> > 1. Is it possible to establish communication (chat) directly between 2
> > clients?  Thing is that I am trying to develop live chat support so
> > each operator will have its own “room” so clients/users can choose and
> > communicate only to choosen operator.  How can I make this scenario?
> > Is it matter of client side or server side?
> > 2. last question, can ajax push engine/ clients work within php?
>
> > thank you very much for support!
> > david
>
> --
> Thanks & regards,
> Minh NGuyen
> ------------------------------------------------------------
> Hãy lắng nghe giai điệu quê hương tại địa chỉhttp://www.nhacquehuong.info
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/
-~----------~----~----~----~------~----~------~--~---

Reply via email to