[X] I have searched existing issues to ensure the bug has not already been reported
Fastify version
4.13.0
Plugin version
8.x
Node.js version
21.x
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
Win 11/WSL 20.04
Description
I'm trying to broadcast a reconnect notification before the client/server connection is closed for use with TRPC Fastify Plugin but the preClose option isn't typed.
Steps to Reproduce
Install Fastify, TRPC (server and fastify plugin) and Fastify Websocket in TS Environment
Attempt to add custom onClose method
Expected Behavior
Be able to add an onClose method to the options of fastify websocket.
Prerequisites
Fastify version
4.13.0
Plugin version
8.x
Node.js version
21.x
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
Win 11/WSL 20.04
Description
I'm trying to broadcast a reconnect notification before the client/server connection is closed for use with TRPC Fastify Plugin but the preClose option isn't typed.
Steps to Reproduce
Expected Behavior
Be able to add an onClose method to the options of fastify websocket.