XMPP/jabber client help
I want to develop a chat application with floowing featu开发者_如何学运维res
- 1)user A visits website clinks on chat .
- 2)Website picks another user B who is single(who is not paired) and pairs him with A.
- 3)Now A and B can chat till they want.
Now here neight A or B are registered member of website.Neight they ave any accouunt.
Can i develop such things using jabber/XMPP on appengine ??If yes how??please provide some pointers so that i can start off.
This kind of app is absolutely possible on App Engine, using XMPP, but you won't be able to have them talk directly to eachother, only to your app. You can then "bounce" messages from User A to User B via your bot.
1.) A user visits site, enters their jabber ID (or you could have them log in). You would need to store this JID in the datastore
2.) Another user visits the site, enters JID, and you pick some random existing "single" JID.
3.) Mark both of the JIDs as "connected" and send each a message to start chatting.
4.) At this point, your app can receive messages from the first user, and send them to the second user, and vice versa. This will also help reduce spam and privacy issues, since users won't need to give their actual JID to a stranger.
As for pointers, the App Engine docs are a good place to start, specifically the section on XMPP (Java / Python).
精彩评论