web - Does Ejabberd only support chat functionality or can i extend it to support my whole website hosted on apache server -
i planning build social networking website facebook supporting chat functionality . want implement chat functionality through ejabberd server . rest of features implemented in apache server .
i not sure whether need extend ejabberd server , port website apache server ejabberd server or find way connect apache server ejabberd server in case of chat request .
if connect apache server ejabberd server should go default mnesia database or mysql.
there's no need apache know ejabberd's database — why should it?
instead, code website , hook ejabberd provide chat functionality using bosh (for instance, via strophe.js or other. "full-blown" web chat clients exist — there hordes of them (plus search web).
there will problem of user authentication/registration can either have transient users (if unly need public chats (rooms) or make ejabberd use same mysql database website engine uses — ejabberd can that. solution enable external authentication in ejabberd — uses program (written you) authenticate users; such program free query same database website engine uses solves problem of imposing specific schema in data base. bonus it's easier change database backend when needed.
Comments
Post a Comment