LiveServerGoAway

@PublicPreviewAPI
classLiveServerGoAway :LiveServerMessage


Notification that the server is initiating a disconnect of the session.

This message is sent by the server when it needs to close the connection, typically due to session timeout, resource constraints, or other server-side reasons.

When this message is received, the client should gracefully close theLiveSession by callingLiveSession.close.

Summary

Public constructors

Public properties

Duration?

The time remaining before the connection terminates.

Public constructors

LiveServerGoAway

LiveServerGoAway(timeLeft: Duration?)

Public properties

timeLeft

val timeLeftDuration?

The time remaining before the connection terminates.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-06 UTC.