Dealing With Custom Messages

Hi

I have custom XMPP messages comming from the clients and I want to process them.
Adding a hook I can catch these custom messages, but now I have the following dillema:
The hook is running on the client session process, as I see each client connection have it's own process (am I right?).
Would it be conceptually right to do some computations such as calling external database and composing and sending replies from within this context? Or should I create another per client process to do my custom work?

Thanks
Eylon

Syndicate content