Summary:
All clients need to provide an authentication token before connecting. Electron app is no different.
This change adds the authentication token whether we are connecting over UDS or TCP.
Before this change, if Flipper server was already running, launching the Electron app would look similar to this:
{F1016961594}
Reviewed By: antonk52
Differential Revision: D46418758
fbshipit-source-id: f00ffe675df78403d5921250e3e9ed9331a55bde
26 lines
931 B
TypeScript
26 lines
931 B
TypeScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
*/
|
|
|
|
export {FlipperServerImpl} from './FlipperServerImpl';
|
|
export {loadSettings} from './utils/settings';
|
|
export {loadLauncherSettings} from './utils/launcherSettings';
|
|
export {loadProcessConfig} from './utils/processConfig';
|
|
export {getEnvironmentInfo} from './utils/environmentInfo';
|
|
export {getGatekeepers} from './gk';
|
|
export {setupPrefetcher} from './fb-stubs/Prefetcher';
|
|
export * from './server/attachSocketServer';
|
|
export * from './server/startFlipperServer';
|
|
export * from './server/startServer';
|
|
export * from './server/utilities';
|
|
export {isFBBuild} from './fb-stubs/constants';
|
|
|
|
export {WEBSOCKET_MAX_MESSAGE_SIZE} from './comms/ServerWebSocket';
|
|
|
|
export {getAuthToken, hasAuthToken} from './utils/certificateUtils';
|