Integrate new minicap along with a moderate rewrite. What's currently missing is recovering from socket death.

This commit is contained in:
Simo Kinnunen
2015-04-15 18:55:46 +09:00
parent 6fe4f8ae1b
commit 95e9dd0b82
43 changed files with 1138 additions and 438 deletions

View File

@@ -0,0 +1,17 @@
var syrup = require('stf-syrup')
var _ = require('lodash')
module.exports = syrup.serial()
.define(function(options) {
var plugin = Object.create(null)
plugin.devicePort = 9002
plugin.publicPort = options.ports.pop()
plugin.publicUrl = _.template(options.screenWsUrlPattern)({
publicIp: options.publicIp
, publicPort: plugin.publicPort
, serial: options.serial
})
return plugin
})