graphql-ws / use/fastify-websocket
▸ 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
Name | Type |
---|---|
P |
extends undefined | Record <string , unknown > = undefined | Record <string , unknown > |
E |
extends Record <PropertyKey , unknown > = Record <PropertyKey , never > |
Name | Type | Default value |
---|---|---|
options |
ServerOptions <P , Extra & Partial <E >> |
undefined |
keepAlive |
number |
12_000 |
fastifyWebsocket.WebsocketHandler