Concept: Session Resumption

Back to overview

When and how to reconnect a session.

Description

Session resumption happens, when a new connection for an existing session is established.

Reconnect Types

We differentiate between two types of session resumption: A wakeup and a full reconnect:

Reconnect Triggers

Session resumption SHALL be triggered in one of the following cases:

Triggered by App

As an example, when a new incoming Threema message from a contact arrives, that will result in a new update/messages message being enqueued for the client. If at that point in time a session is active but not connected, session resumption will be triggered.

Triggered by Push

Triggered Manually