basic websocket support for fastify

fastify fastify-plugin
1 Open Issue Need Help Last updated: Jun 24, 2025

Open Issues Need Help

View All on GitHub

AI Summary: The task is to modify the `@fastify/websocket` plugin's `injectWS` function to automatically register a 'ping' event listener that responds with a 'pong' message. This addresses an issue where the default behavior omits this crucial part of the WebSocket handshake, leading to dropped pings and potential test failures. The fix involves adding a single line of code within the existing `injectWS` function.

Complexity: 2/5
good first issue

basic websocket support for fastify

JavaScript
#fastify#fastify-plugin