I'm trying to include the node.js module
XMLHttpRequest, so that I can write a javascript console script to watch contract events and send out the data to a webserver.
I have installed the node.js module
npm install xmlhttprequest
And then include the module in my GETH javascript console script:
var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;
var xhr = new XMLHttpRequest();
The problem is that the module is not being included:
err: Cannot find module 'xmlhttprequest'
Comments