graphql-ws / use/@fastify/websocket / Extra
use/@fastify/websocket.Extra
The extra that will be put in the Context
.
• Readonly
connection: SocketStream
The underlying socket connection between the server and the client.
The WebSocket socket is located under the socket
parameter.
• Readonly
request: FastifyRequest
<RouteGenericInterface
, Server
, IncomingMessage
, FastifySchema
, FastifyTypeProviderDefault
, unknown
, FastifyBaseLogger
, ResolveFastifyRequestType
<FastifyTypeProviderDefault
, FastifySchema
, RouteGenericInterface
>>
The initial HTTP upgrade request before the actual socket and connection is established.