onTimeout is useful if you need to monitor the request timed out in your service. (if the connectionTimeout property is set on the fastify instance)
The onTimeout hook is executed when a request is timed out and the http socket has been hanged up. Therefore you will not be able to send data to the client.
onTimeoutis useful if you need to monitor the request timed out in your service. (if theconnectionTimeoutproperty is set on the fastify instance) The onTimeout hook is executed when a request is timed out and the http socket has been hanged up. Therefore you will not be able to send data to the client.