I am creating a website on google app engine and I want to allow users to chat with each other just like gmail.I have read that there are 2 options - xmpp and channel api.

Now I want to know,can the xmpp sever on gae talk to javascript clients and push messages to browser's javascript just like channel api.everyhere I see that xmpp on gae can talk to xmpp clients,but I did not find info on talking to javascript clients.I would prefer to use xmpp as it gives more features.