UNPKG

@remote.it/core

Version:

Core remote.it JavasScript/TypeScript library

36 lines (33 loc) 1.11 kB
import debug from 'debug' import { ServiceProcess } from './ServiceProcess' const d = debug('remoteit:TargetProcess') export class TargetProcess extends ServiceProcess { // hostname?: string // overload?: number // port: number // secret: string // type: number // uid: string // constructor(config: TargetConfig) { // const targetProperties = [ // `application_type ${config.type}`, // `proxy_dest_port ${config.port}`, // `UID ${config.uid}`, // `secret ${config.secret}`, // ] // if (config.overload) // targetProperties.push(`application_type_overload ${config.overload}`) // const provisioningFile = Buffer.from( // targetProperties.join('\n') + '\n' // ).toString('base64') // // TODO: Make cross platform // super(`/usr/local/bin/connectd -e ${provisioningFile}`) // d('Creating target connection:', config) // this.hostname = config.hostname // this.overload = config.overload // this.port = config.port // this.secret = config.secret // this.type = config.type // this.uid = config.uid // } }