We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fastify 3.10, together with the use of prefixes, breaks fastify-websocket.
fastify-websocket
fastify.register( (fastify, opts, done) => { fastify.get("/", { websocket: true }, (connection, req) => { connection.socket.send("This works"); }); done(); }, { prefix: "/activity" } );
index.js
ws://localhost:3000/activity
Prior to 3.10, this line was called twice per route:
fastify-websocket/index.js
Line 36 in 99c94a0
That's why this lines makes sure to ignore one of them:
Line 42 in 99c94a0
Now with 3.10, the onRoute is called only once, and all of the routes are effectively ignored.
onRoute
originally encountered in quirrel-dev/quirrel#49
The text was updated successfully, but these errors were encountered:
I agree with your analysis! Would you like to send a PR to fix this module?
Sorry, something went wrong.
Please check out #98, it should fix the problem.
Successfully merging a pull request may close this issue.
🐛 Bug Report
Fastify 3.10, together with the use of prefixes, breaks
fastify-websocket
.To Reproduce
index.js
ws://localhost:3000/activity
Your Environment
Some ideas as to what may be causing this
Prior to 3.10, this line was called twice per route:
fastify-websocket/index.js
Line 36 in 99c94a0
That's why this lines makes sure to ignore one of them:
fastify-websocket/index.js
Line 42 in 99c94a0
Now with 3.10, the
onRoute
is called only once, and all of the routes are effectively ignored.The text was updated successfully, but these errors were encountered: