Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
GitHub
c

Admitted

class Admitted[R, Ctx]

Session construction after its one admission boundary has been declared.

Defined by scalive.LiveSessionBuilder.Admitted. View source (scalive/api/src/scalive/routing/LiveRouting.scala:1299-1400)

Methods6

apply

def apply[R1](routes: (LiveRouteFragment[R1] { type Input >: Ctx })*): LiveSession[&[R, R1]]

Defined by scalive.LiveSessionBuilder.Admitted.apply. View source (scalive/api/src/scalive/routing/LiveRouting.scala:1388-1399)

guardConnectedTurns

def guardConnectedTurns[Result <: Unit](guard: Ctx => zio.IO[LiveConnectedTurnFailure, Result]): LiveSessionBuilder.Admitted[R, Ctx]

Appends a policy check before each connected application turn.

Guards at one boundary run in declaration order; session guards run before route guards. The callback receives the context available at this builder. Succeed with Unit to continue, or fail with LiveConnectedTurnFailure for a controlled halt, redirect, reload, or disconnect. Guards are inherited by nested LiveViews and do not run during mount, disconnected rendering, or framework cleanup.

Defined by scalive.LiveSessionBuilder.Admitted.guardConnectedTurns. View source (scalive/api/src/scalive/routing/LiveRouting.scala:1376-1386)

withConnectedResources

def withConnectedResources[Result <: Unit](initialize: (Ctx, ConnectedResources) => zio.Task[Result]): LiveSessionBuilder.Admitted[R, Ctx]

Appends session setup using the context available after admission.

Defined by scalive.LiveSessionBuilder.Admitted.withConnectedResources. View source (scalive/api/src/scalive/routing/LiveRouting.scala:1307-1317)

withLayout

def withLayout(value: LiveLayout[Any, Ctx]): LiveSessionBuilder.Admitted[R, Ctx]

Defined by scalive.LiveSessionBuilder.Admitted.withLayout. View source (scalive/api/src/scalive/routing/LiveRouting.scala:1332-1340)

def withLayout[LayoutContext](layout: LiveLayout[Any, LayoutContext], select: Ctx => LayoutContext): LiveSessionBuilder.Admitted[R, Ctx]

Appends a layout, selecting its input from the context available at this declaration. The pure selector adapts only the layout; later aspects preserve this context selection.

Defined by scalive.LiveSessionBuilder.Admitted.withLayout. View source (scalive/api/src/scalive/routing/LiveRouting.scala:1345-1348)

withMountAspect

def withMountAspect[R1, Claims, Out, Result](aspect: LiveSessionMountAspect[R1, Ctx, Claims, Out])(using append: ContextAppend.Aux[Ctx, Out, Result]): LiveSessionBuilder.Admitted[&[R, R1], Result]

Defined by scalive.LiveSessionBuilder.Admitted.withMountAspect. View source (scalive/api/src/scalive/routing/LiveRouting.scala:1319-1330)

withRootLayout

def withRootLayout(value: LiveRootLayout[Any, Ctx]): LiveSessionBuilder.Admitted[R, Ctx]

Defined by scalive.LiveSessionBuilder.Admitted.withRootLayout. View source (scalive/api/src/scalive/routing/LiveRouting.scala:1350-1358)

def withRootLayout[LayoutContext](layout: LiveRootLayout[Any, LayoutContext], select: Ctx => LayoutContext): LiveSessionBuilder.Admitted[R, Ctx]

Replaces the session root, selecting its input from this declaration's context. Key and render select independently, so the selector must be pure and deterministic.

Defined by scalive.LiveSessionBuilder.Admitted.withRootLayout. View source (scalive/api/src/scalive/routing/LiveRouting.scala:1363-1366)

Values1

name

val name: String

Defined by scalive.LiveSessionBuilder.Admitted.name. View source (scalive/api/src/scalive/routing/LiveRouting.scala:1300-1300)