Remove TCP option as it will be the only option

Summary: UDS will be removed. The first step would be to remove the TCP optionality.

Reviewed By: passy

Differential Revision: D48264741

fbshipit-source-id: ca9e1b68be61e99240e95bcd4f26f2db63a64005
This commit is contained in:
Lorenzo Blasa
2023-08-11 08:19:51 -07:00
committed by Facebook GitHub Bot
parent bdc2d5f6eb
commit 47b718d104
4 changed files with 12 additions and 49 deletions

View File

@@ -74,12 +74,6 @@ const argv = yargs
type: 'boolean',
default: true,
},
tcp: {
describe:
'Open a TCP port (--no-tcp can be specified as to use unix-domain-socket exclusively)',
type: 'boolean',
default: true,
},
replace: {
describe: 'Replaces any running instance, if any.',
type: 'boolean',
@@ -214,7 +208,7 @@ async function start() {
staticPath,
entry: `index.web${argv.bundler ? '.dev' : ''}.html`,
port: argv.port,
tcp: argv.tcp,
tcp: true,
});
const t4 = performance.now();
@@ -308,10 +302,6 @@ async function start() {
}
async function launch() {
if (!argv.tcp) {
return;
}
let token: string | undefined;
if (await hasAuthToken()) {
token = await getAuthToken();