/
githubmirror
/
trpc
Обзор
Документация
Войти
/
githubmirror
/
trpc
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
examples/next-websockets-encoder/src/server/trpc.ts
20 строк
551 B
Siraj Chokshi
feat(client,server): add experimental_encoder option for WebSocket connections (#7100)
28 янв 2026, 00:45
Не верифицирован
28 янв 2026, 00:45
7b6e624
Код
Авторство
О чём код?
/** * This is your entry point to setup the root configuration for tRPC on the server. * - `initTRPC` should only be used once per app. * - We export only the functionality that we use so we can enforce which base procedures should be used */ import { initTRPC } from '@trpc/server'; const t = initTRPC.create(); /** * Create a router * @see https://trpc.io/docs/v11/router */ export const router = t.router; /** * Create an unprotected procedure * @see https://trpc.io/docs/v11/procedures **/ export const publicProcedure = t.procedure;