@ts-pf/message-client
v0.1.3
Published
Opt-in PortLink, WsLink, and StdioLink
Maintainers
Readme
@ts-pf/message-client
Opt-in PortLink / WsLink / StdioLink for the same createClient(link) as @ts-pf/client-http FetchLink.
Agent skill: skills/ts-pf-message-client/. Sync with npx skills experimental_sync -y.
import { createClient, RetryPlugin } from '@ts-pf/client'
import { PortLink } from '@ts-pf/message-client'
const client = createClient<typeof contract>(new PortLink({ port }), {
plugins: [new RetryPlugin()],
})Stdio is a subpath, not on the main index:
import { StdioLink } from '@ts-pf/message-client/stdio'
const child = spawn(cmd, { stdio: ['pipe', 'pipe', 'inherit'] })
new StdioLink({ input: child.stdout, output: child.stdin })User owns listen / upgrade / spawn / Worker bootstrap. Prod never depends on @ts-pf/server.
Wire spec: packages/protocol/PROTOCOL.md (Message transports).
