smartproxy/ts/smartproxy.classes.proxymaster.ts

23 lines
461 B
TypeScript
Raw Normal View History

2019-08-22 10:49:29 +00:00
import * as plugins from './smartproxy.plugins';
import { expose } from '@pushrocks/smartspawn';
class ProxyMaster {
public hostCandidates: plugins.tsclass
public clusterChilds: any[] = [];
}
const defaultProxyMaster = new ProxyMaster();
const proxyMasterCalls = {
terminateMaster: async () => {
process.kill(0);
},
};
export type TProxyMasterCalls = typeof proxyMasterCalls;
expose (proxyMasterCalls);
console.log('Proxymaster started!');