Hi,
So after reading the project plan page, I decided to implement a basic chat interface for comments. What it does is attach itself to any node that has comments enabled and provide an ajax interface for posting and receiving comments. It works as a block that you can place in the sidebar, or by navigating to node/24/chat_comment it will give a full page version of the chat.
It's very rudimentary though, for instance I am doing straight HTML injections for updating the chat window. The nice thing about that is I only have two callbacks, one to save a new post and another to load the latest 10 comments in the chat window. However, I realize the "correct" way to do this is to implement a JSON state that only updates and sends transitions of the state (latest comments, etc). But I figure this is at least a start.
My question is...where do I post this? If we are trying to avoid duplicate chat projects, I don't want to start yet another project...
Comments
Post in your sandbox
If you have a CVS account, post the code in your sandbox. That will give everyone else a chance to download and work on it.
Ok. I've posted in my
Ok. I've posted in my sandbox here:
http://cvs.drupal.org/viewcvs/drupal/contributions/sandbox/zirafa/chat_comment/
I also just realized I
I also just realized I probably need to avoid the full drupal bootstrap when updating the page. The old chatroom module seems to average less than 300ms per request while I can barely get under 500ms per update request since it runs through a regular menu callback, etc...
at least, this is my guess.