The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import { createPreviewTunnelUrlReader } from "@t3tools/client-runtime/state/previewTunnel"; |
| 2 | |
| 3 | import { connectionAtomRuntime } from "../connection/runtime"; |
| 4 | import { appAtomRegistry } from "../rpc/atomRegistry"; |
| 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 | }); |