snowflake/proxy/init-node.js
Arlo Breault 31ad9566e6 Compile coffee files and remove them
With,

  ./node_modules/.bin/coffee -b -c Cakefile `find . -path ./node_modules -prune -o -name '*.coffee'`
2019-07-10 10:49:36 +02:00

27 lines
450 B
JavaScript

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