Further decouple server from UI

Summary: Further decoupling of `server/` from the rest of the code base. Also fixed a problem with promise chaining causing promises to create unhandled rejection errors.

Reviewed By: passy

Differential Revision: D31474919

fbshipit-source-id: 027cccbe9b57d856c94d63c093d39b6cb3e53312
This commit is contained in:
Michel Weststrate
2021-10-12 15:59:44 -07:00
committed by Facebook GitHub Bot
parent 11e7bbf9cf
commit cfd44b592a
13 changed files with 114 additions and 130 deletions

View File

@@ -40,6 +40,12 @@ export type DeviceDescription = {
readonly sdkVersion?: string;
};
export type UninitializedClient = {
os: string;
deviceName: string;
appName: string;
};
export type ClientQuery = {
readonly app: string;
readonly os: DeviceOS;
@@ -79,6 +85,7 @@ export type FlipperServerEvents = {
serial: string;
entry: DeviceLogEntry;
};
'client-setup': UninitializedClient;
'client-connected': ClientDescription;
'client-disconnected': {id: string};
'client-message': {