LiveServerGoAway

@PublicPreviewAPI
public final class LiveServerGoAway implements 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 the LiveSession by calling LiveSession.close.

Summary

Public fields

final Duration

The time remaining before the connection terminates.

Public constructors

Public fields

timeLeft

public final Duration timeLeft

The time remaining before the connection terminates.

Public constructors

LiveServerGoAway

public LiveServerGoAway(Duration timeLeft)