@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 12 lines 562 Bytes
Raw
1 import { createPreviewTunnelUrlReader } from "@t3tools/client-runtime/state/previewTunnel";
2
3 import { connectionAtomRuntime } from "../connection/runtime";
4 import { appAtomRegistry } from "./atom-registry";
5 import { environmentSession } from "./session";
6
7 /** The environment's tunnel WebSocket URL with a live media ticket, or null when unreachable. */
8 export const readPreviewTunnelUrl = createPreviewTunnelUrlReader({
9 runtime: connectionAtomRuntime,
10 registry: appAtomRegistry,
11 preparedConnectionAtom: environmentSession.preparedConnectionValueAtom,
12 });