Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
GitHub
e

JoinRejected

enum JoinRejected(connectionId: Long, lifecycleId: Option[Long], target: LifecycleJoinTarget, attempt: LifecycleJoinAttempt, durationNanos: Long, error: LifecycleError) extends LifecycleEvent

Scalive rejected a join, or the joined LiveView failed to start.

Parameters

connectionId

The ID of the WebSocket connection that sent the join.

lifecycleId

The ID of the lifecycle the join started, as in its mount events, or None when Scalive rejected the join before starting one.

target

Whether the join targeted a root or nested LiveView.

attempt

The join counters reported by the client.

durationNanos

The time from receiving the join until the rejection, in nanoseconds.

error

The failure, classified as JoinRejected or Interrupted. It carries a cause when an admitted lifecycle failed to start.

Defined by scalive.LifecycleEvent.JoinRejected. View source (scalive/api/src/scalive/LifecycleObserver.scala:368-374)

Values6

attempt

val attempt: LifecycleJoinAttempt

The join counters reported by the client.

Defined by scalive.LifecycleEvent.JoinRejected.attempt. View source (scalive/api/src/scalive/LifecycleObserver.scala:372-372)

connectionId

val connectionId: Long

The ID of the WebSocket connection that sent the join.

Defined by scalive.LifecycleEvent.JoinRejected.connectionId. View source (scalive/api/src/scalive/LifecycleObserver.scala:369-369)

durationNanos

val durationNanos: Long

The time from receiving the join until the rejection, in nanoseconds.

Defined by scalive.LifecycleEvent.JoinRejected.durationNanos. View source (scalive/api/src/scalive/LifecycleObserver.scala:373-373)

error

val error: LifecycleError

The failure, classified as JoinRejected or Interrupted. It carries a cause when an admitted lifecycle failed to start.

Defined by scalive.LifecycleEvent.JoinRejected.error. View source (scalive/api/src/scalive/LifecycleObserver.scala:374-374)

lifecycleId

val lifecycleId: Option[Long]

The ID of the lifecycle the join started, as in its mount events, or None when Scalive rejected the join before starting one.

Defined by scalive.LifecycleEvent.JoinRejected.lifecycleId. View source (scalive/api/src/scalive/LifecycleObserver.scala:370-370)

target

val target: LifecycleJoinTarget

Whether the join targeted a root or nested LiveView.

Defined by scalive.LifecycleEvent.JoinRejected.target. View source (scalive/api/src/scalive/LifecycleObserver.scala:371-371)