What do you mean by listen to an openfire event? If you mean communicate with the server, then yes it is possible. I regularly use Node.JS with StropheJS to communicate with Openfire over BOSH. While StropheJS is more intended for client-side JavaScript, it is usable within Node.JS.
Jake