Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 1.15 KB

use_fastify_websocket.md

File metadata and controls

40 lines (24 loc) · 1.15 KB

graphql-ws / use/fastify-websocket

Module: use/fastify-websocket

Table of contents

Interfaces

Functions

Server/fastify-websocket

makeHandler

makeHandler<P, E>(options, keepAlive?): fastifyWebsocket.WebsocketHandler

Make a handler to use on a fastify-websocket route. This is a basic starter, feel free to copy the code over and adjust it to your needs

Type parameters

Name Type
P extends undefined | Record<string, unknown> = undefined | Record<string, unknown>
E extends Record<PropertyKey, unknown> = Record<PropertyKey, never>

Parameters

Name Type Default value
options ServerOptions<P, Extra & Partial<E>> undefined
keepAlive number 12_000

Returns

fastifyWebsocket.WebsocketHandler