|
@@ -233,8 +233,21 @@ declare namespace threema {
|
|
|
|
|
|
/**
|
|
|
* Connection state in the welcome dialog.
|
|
|
+ *
|
|
|
+ * States:
|
|
|
+ *
|
|
|
+ * - new: Initial state
|
|
|
+ * - connecting: Connecting to signaling server
|
|
|
+ * - push: When trying to reconnect, waiting for push notification to arrive
|
|
|
+ * - manual_start: When trying to reconnect, waiting for manual session start
|
|
|
+ * - waiting: Waiting for new-responder message from signaling server
|
|
|
+ * - peer_handshake: Doing SaltyRTC handshake with the peer
|
|
|
+ * - loading: Loading initial data
|
|
|
+ * - done: Initial loading is finished
|
|
|
+ * - closed: Connection is closed
|
|
|
+ *
|
|
|
*/
|
|
|
- type ConnectionBuildupState = 'new' | 'push' | 'manual_start' | 'connecting' | 'waiting'
|
|
|
+ type ConnectionBuildupState = 'new' | 'connecting' | 'push' | 'manual_start' | 'waiting'
|
|
|
| 'peer_handshake' | 'loading' | 'done' | 'closed';
|
|
|
|
|
|
/**
|