/
githubmirror
/
trpc
Обзор
Документация
Войти
/
githubmirror
/
trpc
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/client/src/links/wsLink/createWsClient.ts
12 строк
448 B
Siraj Chokshi
feat(client,server): add experimental_encoder option for WebSocket connections (#7100)
28 янв 2026, 00:45
Не верифицирован
28 янв 2026, 00:45
7b6e624
Код
Авторство
О чём код?
import type { Encoder } from './wsClient/encoder'; import { jsonEncoder } from './wsClient/encoder'; import type { WebSocketClientOptions } from './wsClient/options'; import { WsClient } from './wsClient/wsClient'; export function createWSClient(opts: WebSocketClientOptions) { return new WsClient(opts); } export type TRPCWebSocketClient = ReturnType<typeof createWSClient>; export { jsonEncoder, type Encoder, type WebSocketClientOptions };