I am trying to do this with node.js and riak-js
db = require('./riak-js/lib').getClient({host: "localhost", port: "8098" });
console.log db
Note, this is Coffee-Script code.
The db variable always ends up as { }
I have cloned the latest version of riak-js from github. I have also tried the npm distributed version, but always the same result.
I have a single node of riak running on my local machine. I can access it with any browser with url localhost:8098
Does anyone have any suggestion why this is failing for me?
It is just an empty object, the magic is in it’s prototype 🙂
try this: