I don't know if it is the right place to answer this, but is there any cometchat-like solution for Node ?
(But perhaps I should migrate the question to meta?)
Google is your friend for find excellent examples: node.js chat socket.io example
One great chat example can be found at:
This recipe can be found in it's original form on Stack Over Flow.