Download [[service]] SDK for Node.js
npm install webcom
Next, in your app code, import [[service]] SDK to use it
var Webcom = require('webcom');
API is similar to the web SDK. Watch out some examples to read and write data [[snippet]]:
var myRef = new Webcom('<your-webcom-app>'); // Read data myRef.on('child_added', function(snap){ console.info(snap.val()); }); // Write data myRef.set({foo: 'bar'});
If you have a company proxy, you just have to setup usual environment variables
HTTPS_PROXY
andHTTP_PROXY
(their lowercase counterpart also works). For example:export HTTPS_PROXY="my-proxy.my-company.com:8080"