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:
committed by
Facebook GitHub Bot
parent
11e7bbf9cf
commit
cfd44b592a
@@ -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': {
|
||||
|
||||
Reference in New Issue
Block a user