From 204c075782fd5c3d03c11bf5507dcf8a5f87300d Mon Sep 17 00:00:00 2001 From: Lorenzo Blasa Date: Tue, 27 Jul 2021 09:59:45 -0700 Subject: [PATCH] Move BrowserClientFlipperConnection to a better location Summary: Move BrowserClientFlipperConnection to a better location. All communication types should be located inside the comms/ directory. Reviewed By: jknoxville Differential Revision: D29937942 fbshipit-source-id: 7fbf92c60d53a8f4f16d738bcbd6c451ce367ff1 --- .../BrowserClientFlipperConnection.tsx | 2 +- desktop/app/src/comms/ServerController.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename desktop/app/src/{utils/js-client-server-utils => comms}/BrowserClientFlipperConnection.tsx (98%) diff --git a/desktop/app/src/utils/js-client-server-utils/BrowserClientFlipperConnection.tsx b/desktop/app/src/comms/BrowserClientFlipperConnection.tsx similarity index 98% rename from desktop/app/src/utils/js-client-server-utils/BrowserClientFlipperConnection.tsx rename to desktop/app/src/comms/BrowserClientFlipperConnection.tsx index a398bc00d..4e907e162 100644 --- a/desktop/app/src/utils/js-client-server-utils/BrowserClientFlipperConnection.tsx +++ b/desktop/app/src/comms/BrowserClientFlipperConnection.tsx @@ -13,7 +13,7 @@ import { ConnectionStatus, ClientConnection, ResponseType, -} from '../../comms/ClientConnection'; +} from './ClientConnection'; export class BrowserClientFlipperConnection implements ClientConnection { websocket: WebSocket; diff --git a/desktop/app/src/comms/ServerController.tsx b/desktop/app/src/comms/ServerController.tsx index f6f34a28c..9b7f57948 100644 --- a/desktop/app/src/comms/ServerController.tsx +++ b/desktop/app/src/comms/ServerController.tsx @@ -38,7 +38,7 @@ import {buildClientId} from '../utils/clientUtils'; import {Single} from 'rsocket-flowable'; import WebSocket from 'ws'; import JSDevice from '../devices/JSDevice'; -import {BrowserClientFlipperConnection} from '../utils/js-client-server-utils/BrowserClientFlipperConnection'; +import {BrowserClientFlipperConnection} from './BrowserClientFlipperConnection'; import querystring from 'querystring'; import {IncomingMessage} from 'http'; import ws from 'ws';