Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

source.ts

14 lines613 Bytes

1import * as Context from "effect/Context";
2import type * as Stream from "effect/Stream";
3​
4import type { PlatformConnectionRegistration } from "../connection/catalog.ts";
5​
6export class PlatformConnectionSource extends Context.Service<
7 PlatformConnectionSource,
8 {
9 // Each emission is the full current set of platform-managed environments
10 // (the primary local environment plus any desktop-local backends running
11 // alongside it).
12 readonly registrations: Stream.Stream<ReadonlyArray<PlatformConnectionRegistration>>;
13 }
14>()("@t3tools/client-runtime/platform/source/PlatformConnectionSource") {}