# Type Alias: CreateFastifyContextOptions

> 

> **CreateFastifyContextOptions**: [`NodeHTTPCreateContextFnOptions`](https://trpc.io/docs/typedoc/server/adapters/node-http/type-aliases/NodeHTTPCreateContextFnOptions.md)\<`FastifyRequest`, `FastifyReply`\>

Defined in: [packages/server/src/adapters/fastify/fastifyTRPCPlugin.ts:51](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/server/src/adapters/fastify/fastifyTRPCPlugin.ts#L51)

What `createContext` gets in the Fastify adapter: `req`, `res` and the
request's `info`. With `useWSS`, WebSocket connections get the raw
`IncomingMessage` as `req` and the `WebSocket` as `res` instead.

## See

https://trpc.io/docs/server/adapters/fastify#create-the-context
