Documentation
Interfaces
use//fastify/websocket.Extra

Interface: Extra

use/@fastify/websocket.Extra

The extra that will be put in the Context.

Properties

connection

Readonly connection: SocketStream

The underlying socket connection between the server and the client. The WebSocket socket is located under the socket parameter.

Defined in

src/use/@fastify/websocket.ts:21


request

Readonly request: FastifyRequest<RouteGenericInterface, RawServerDefault, IncomingMessage, FastifySchema, FastifyTypeProviderDefault, unknown, FastifyBaseLogger, ResolveFastifyRequestType<FastifyTypeProviderDefault, FastifySchema, RouteGenericInterface>>

The initial HTTP upgrade request before the actual socket and connection is established.

Defined in

src/use/@fastify/websocket.ts:26