Hi,
I am looking to use xmpp with openfire for an application that will have one-to-one chat as well as a shoutbox facility. I was wondering how to go about storing the conversations until i found the monitoring plugin. I enabled it and it works great. only problem is that when i send a message and then check the database table for a record, it takes too long before a record gets added. The reason i want message logging in the first place is that when a user refreshes the page, he will be shown last few lines of the conversation fetched from the db. With such a time gap between the receiving of the message and it getting stored in the db, there is a chance that the user may miss a few lines of the chat when he refreshes the page.
My question is whether the monitoring plugin right for the problem or is there a better way to achieve this ?
I am using the strophe js library.
Thanks