export const DEFAULT_PORT=26611; export default function () { var portStr : string = process .argv .filter((a : string) => { return a.startsWith('port') || a.startsWith('-port'); })[0]; //26611 and 26610 reserved by var _port = DEFAULT_PORT; //default port number if (portStr) _port = Number(portStr.split('=')[1]); const Port = _port > 0 ? _port : DEFAULT_PORT; return Port; }