snowflake/proxy/init-node.js
Arlo Breault fab39ae57c Cleanup lints identified by eslint
Some files were omitted in the .eslintignore, left as an exercise to the
reader.

We probably want to reduce amount of globals overall and use proper es
modules.
2019-07-10 10:58:29 +02:00

27 lines
438 B
JavaScript

/* global Config, UI, Broker, Snowflake */
/*
Entry point.
*/
var config = new Config;
var ui = new UI();
var broker = new Broker(config.brokerUrl);
var snowflake = new Snowflake(config, ui, broker);
var log = function(msg) {
return console.log('Snowflake: ' + msg);
};
var dbg = log;
log('== snowflake proxy ==');
dbg('Contacting Broker at ' + broker.url);
snowflake.setRelayAddr(config.relayAddr);
snowflake.beginWebRTC();