require('babelify/polyfill');

const config = require('./config');

const SculptureApp = require('./app');

const DEFAULT_CLIENT_CONNECTION_OPTIONS = {
  protocol: "ws",
  username: "anyware",
  password: "anyware",
  host: "broker.shiftr.io"
};

const app = new SculptureApp(config);

const connectionOptions = Object.assign({}, DEFAULT_CLIENT_CONNECTION_OPTIONS);

if (process.argv.length === 4) {
  console.log("Using authentication information provided by command arguments");
  connectionOptions.username = process.argv[2];
  connectionOptions.password = process.argv[3];
}

app.connectAndSetup(connectionOptions);


@@ -176,23 +176,26 @@
 rname: %22
-anywa
+sculptu
 re
+0
 %22,%0A  pas
@@ -206,15 +206,40 @@
 d: %22
-anyware
+7f24a3e73b91dc9f51f15861d75c888b
 %22,%0A 

Connect as sculpture0 for now, until we have config in local storage