Skip to content

Factory

[Source]

Creates a new LiveView instance for an incoming connection.

Partial because constructors may fail (e.g., template parsing). The connection actor closes the WebSocket with an error if the factory fails.

Structural typing allows lambdas as factories:

{(): LiveView ref^ ? => MyView?} val
interface val Factory

Public Functions

apply

[Source]

fun box apply()
: LiveView ref^ ?

Returns