Fix Windows
Summary: For Windows, we cannot use UDS, so use TCP instead. Reviewed By: antonk52 Differential Revision: D47436314 fbshipit-source-id: ee2454f9f77b3642f4988957eefc250a64bf02b6
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f404827c69
commit
2f617d5eab
@@ -45,6 +45,7 @@ import constants from './fb-stubs/constants';
|
||||
import {initializeElectron} from './electron/initializeElectron';
|
||||
import path from 'path';
|
||||
import fs from 'fs-extra';
|
||||
import os from 'os';
|
||||
import {ElectronIpcClientRenderer} from './electronIpc';
|
||||
import {checkSocketInUse, makeSocketPath} from 'flipper-server-core';
|
||||
import {KeytarModule} from 'flipper-server-core/src/utils/keytar';
|
||||
@@ -217,7 +218,9 @@ async function getFlipperServer(
|
||||
await server.connect();
|
||||
await readyForIncomingConnections(server, companionEnv);
|
||||
|
||||
return getExternalServer(UDSconnectionURL);
|
||||
return getExternalServer(
|
||||
os.platform() === 'win32' ? TCPconnectionURL : UDSconnectionURL,
|
||||
);
|
||||
}
|
||||
return getEmbeddedServer();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user