I'm a Drupal/PHP vet, have a pretty firm understanding of AJAX/JSON, but I'm a node.js newbie. I'd like to use node.js on one of my projects but my experience so far has been pretty frustrating.
I've finally managed to get my D7 node.js config working to the point where there are no more errors on startup or on client page loads. Users seem to be authenticating just fine. But when I attempt to broadcast a message (either using the web interface or drush) nothing happens on the client side - no errors, no response. Where do I start debugging this?
Also, I have to admit I'm a bit lost on where to start with node.js. All I'm looking for is: (and forgive my vocabulary if I'm off here)
1) Have users subscribe to a node.js channel when accessing a page.
2) Create a drupal function to broadcast a message to those users.
3) I'm uncertain if I should simply use AJAX for users to send messages to the server, or if there's a node.js option to receive data from the client and pass it to a Drupal function - I figure I should use this if at all possible.
4) An understanding of what I need to implement on the client side to receive, parse, and send these messages. I notice the broadcast function uses jGrowl. Is this a library? Something implemented just for Drupal node.js?
Perhaps I'm looking for "The newbie's guide on how to implement simple chat with node.js and Drupal". I know there's a node.js chat module but I'd rather wait until I know the system is working before delving into it.
Any help would be appreciated. Thanks!