diff --git a/lib/types/socket-types.js b/lib/types/socket-types.js --- a/lib/types/socket-types.js +++ b/lib/types/socket-types.js @@ -488,11 +488,19 @@ | 'disconnecting' | 'forcedDisconnecting' | 'disconnected'; + +export type ConnectionIssue = + | 'socket_deauthorized' + | 'client_version_unsupported' + | 'socket_crash_loop' + | 'not_logged_in_error'; + export type ConnectionInfo = { +status: ConnectionStatus, +queuedActivityUpdates: $ReadOnlyArray, +lateResponses: $ReadOnlyArray, +showDisconnectedBar: boolean, + +connectionIssue?: ConnectionIssue, }; export const connectionInfoValidator: TInterface = tShape({