You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Initial entry point. Decides which directory of code to load
var dir;
// SocketStream core developers, start your app with SS_DEV=1 to run the CoffeeScript /src code at runtime
if (process.env['SS_DEV']) {
dir = 'src';
console.log("Running CoffeeScript code in /src for SocketStream core developers\nType 'make build' in the socketstream project directory to re-generate /lib when done")
require('coffee-script');
} else {
dir = 'lib';
}
// Check to see if existing project must be upgraded
require('./check_version.js');
// Load SocketStream core
module.exports = require('./' + dir + '/socketstream.js');