Hi I m new to SocketStream
I've been reading the documentation and I was following the part about using an external db api in the main app.js file;
- // in /app.js
- var db   = require('mydb'),
-     conn = db.createClient();
-  
- ss.api.add('db', conn);
I followed this example trying it out with an external redis db server but when I tested it in the server/rpc/example.js file, my program does not recognise ss.db.
I wrote this function in server/rpc/example.js
 ss.db.set("User", user); 
My program then crashes giveing an error of undefined.
It seems my program is not recognising ss.db entirely. I know this because I tested with console.log(ss.db); What may I have been doing wrong?