npm / @fastify/websocket
@fastify/websocket
What changed in @fastify/websocket 9 to 11, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-27.
1 new APIs and options5 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@fastify/websocket 114 changes
Fixes and other changes 4
The handler in route() is now typed as a websocket handler when websocket: true is set.
Socket errors during upgrade hooks are now handled.
The custom server upgrade listener is removed when the server closes.
Raw socket error events are now routed through the errorHandler option.
@fastify/websocket 101 changes
Fixes and other changes 1
Provides websocket instead of stream to avoid potential backpressure issues.
@fastify/websocket 91 changes
New APIs and options 1
Adds injectWS.