class SvelteTrellisConnection

Svelte-reactive adapter around a framework-neutral Trellis connection.

Constructors

SvelteTrellisConnection(connection: TrellisConnection)

Creates a reactive connection adapter for a connected Trellis runtime.

Properties

readonly
status: TrellisConnectionStatus

Latest connection status, reactive when read by Svelte effects or markup.

Methods

close(): Promise<void>

Closes the underlying Trellis runtime connection.

Usage

import { SvelteTrellisConnection } from "trellis-svelte/src/index.ts";