diff --git a/index.js b/index.js index c76f1db..46f5a48 100644 --- a/index.js +++ b/index.js @@ -210,9 +210,6 @@ function fastifyWebsocket (fastify, opts, next) { } }) - // Fastify is missing a pre-close event, or the ability to - // add a hook before the server.close call. We need to resort - // to monkeypatching for now. fastify.addHook('preClose', preClose) function defaultPreClose (done) {