brainCloud NodeJS client
Install
npm i braincloud-node
or if still in development
npm i git+ssh://git@bitbucket.org:bitheadsinc/braincloud-node.git
Usage
var bc = { console; var shareable = true; var replaceIfExists = true; _bcbrainCloudClientfile}_bc = "_mainWrapper";// This Node implementation does not use jQuery so turn it off._bcbrainCloudManager; secret = "aaaaaaaa-bbbb-0000-cccc-111111111111";appId = "00000"; console;_bc; console;_bc;
Implementation notes
File Upload
The file upload works slightly different in this implementation. Instead of using XMLHttpRequest you need to use XMLHttpRequest4Upload. Also the file object passed into uploadFile call needs to be a Read Stream from the nodes fs module.
var fs = ... _bcbrainCloudClientfile
Only load and error listeners are triggered in this implementations.
Sessions
Sessions are not maintained across executions of scripts. i.e. Each script must initialy login.