tryResume

abstract suspend fun tryResume(token: ResumeToken, at: Long): ResumeResult

Attempts to resume the peer identified by token.

Validation order:

  1. Session match — ResumeToken.roomId must equal the controller's Room.

  2. Window open — the reconnect window for token.peerId must still be active at at.

  3. Token not yet consumed — a token may only be used once per window.

On success, emits JoinerReconnectEvent.Resumed and closes the window so a second tryResume with the same token returns ResumeResult.WindowClosed.