createStreamSessionConnection
Allows clients to reconnect to a recently disconnected stream session without losing any data from the last session.
A client can reconnect to a stream session that's in PENDING_CLIENT_RECONNECTION
or ACTIVE
status. In the stream session life cycle, when the client disconnects from the stream session, the stream session transitions from CONNECTED
to PENDING_CLIENT_RECONNECTION
status. When a client requests to reconnect by calling CreateStreamSessionConnection
, the stream session transitions to RECONNECTING
status. When the reconnection is successful, the stream session transitions to ACTIVE
status. After a stream session is disconnected for longer than ConnectionTimeoutSeconds
, the stream session transitions to the TERMINATED
status.
To connect to an existing stream session, specify the stream group ID and stream session ID that you want to reconnect to, as well as the signal request settings to use with the stream.
ConnectionTimeoutSeconds
defines the amount of time after the stream session disconnects that a reconnection is allowed. If a client is disconnected from the stream for longer than ConnectionTimeoutSeconds
, the stream session ends.