alexscheelmeyer/node-phantom — pull request #5 by mtkopone (2012-09-06 11:11:34+00:00)
Title: WebPage to Node process push communication via page.onConsoleMessage and such.

Hi,

In an effort to ease debugging of our browser tests when running then in phantom, this commit contains code & a test to enable the use of all page callbacks to notify node.

See: http://code.google.com/p/phantomjs/wiki/Interface#Callbacks

Also, see test for example usage.

Hope you accept it,
Mikko