On Oct 10, 2011, at 12:16 PM, Carlos wrote:
> Please, could you help me about how can I log the chat messages in
> centralized database?

Are you talking about the simple js chat app in Tundra demo scenes?

With that you can either just add your db saving code straight there, or make 
another script/module that listens the the chat app actions and does the saving.

The place directly in the app itself is where the server receives & relays the 
messages in: 
https://github.com/realXtend/naali/blob/tundra2/bin/scenes/ChatApplication/ChatApplication.js#L45

And an example of a separate module that works with the chat app is:
https://github.com/realXtend/naali/blob/tundra/bin/pymodules/irc/serverrelay.py

Doing the db stuff is normal, the same way as you would otherwise with your db 
& programming language of choice (c++, qtscript (js with the qt apis) and 
python being the options that you have ready at hand here).

> Carlos M.

~Toni

-- 
http://groups.google.com/group/realxtend
http://www.realxtend.org

Reply via email to