snowflake/proxy/init-node.js
Cecylia Bocovich 8ab81fc6cd Update proxy config to take proxy type
This allows badge and standalone proxies to tell the broker what proxy
type they are.
2019-11-28 13:52:58 -05:00

27 lines
428 B
JavaScript

/* global Config, UI, Broker, Snowflake */
/*
Entry point.
*/
var config = new Config;
var ui = new UI();
var broker = new Broker(config);
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();