fastify / fastify-websocket

basic websocket support for fastify
MIT License
393 stars 72 forks source link

Fastify deprecates getDefaultRoute/setDefaultRoute #239

Closed marcolanaro closed 1 year ago

marcolanaro commented 1 year ago

Prerequisites

Issue

Currently, servers using this library logs this kind of errors: [FSTDEP014] FastifyDeprecation: You are trying to set/access the default route. This property is deprecated. Please, use setNotFoundHandler if you want to custom a 404 handler or the wildcard (*) to match all routes..

This is because of this deprecation https://github.com/fastify/fastify/commit/fc81c707b819894bd84a903e5bbd23ec121e5a7b.

The issue to help tracking dependency adoption.

Uzlopak commented 1 year ago

Ensure that you use the latest version of @fastfy/websocket as this was patched in version 7.1.2