Home | History | Annotate | Download | only in rtcbot

Lines Matching refs:Bot

24 // TODO(andresp): There should be a way to control which bot was spawned
25 // and what bot instance it gets connected to.
47 console.log('Error: Type ' + botType + ' not supported by rtc-Bot!');
54 var bot = this.createBot_(name, botType, callback);
55 this.bots_.push(bot);
56 this.pendingConnections_.push(bot.onBotConnected.bind(bot));
64 this.app_.use('/bot/api.js',
66 __dirname + '/bot/api.js'));
68 this.app_.use('/bot/', Express.static(__dirname + '/bot'));
95 // A basic bot waits for onBotConnected to be called with a stream to the actual
96 // endpoint with the bot. Once that stream is available it establishes a dnode
99 Bot = function (name, callback) {
104 Bot.prototype = {
106 console.log("bot:" + this.name_ + " > " + msg);
124 // BrowserBot spawns a process to open "https://localhost:8080/bot/browser".
127 // and exposes the bot api.
129 Bot.call(this, name, callback);
136 child.exec('google-chrome "https://localhost:8080/bot/browser/"');
139 __proto__: Bot.prototype
143 // "https://localhost:8080/bot/browser/" on chrome for Android.
145 Bot.call(this, name, callback);
157 '-d https://localhost:8080/bot/browser/';
168 __proto__: Bot.prototype