[X] I have searched existing issues to ensure the bug has not already been reported
Fastify version
4.20.0
Plugin version
8.2.0
Node.js version
18.17.0
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
13.4
Description
I have tried in many different environments (Replit, Stackblitz, locally, with and without ESM enabled), but I just cannot seem to be able to connect with a WS server created with this plugin. Network time in DevTools is stuck on "Pending".
Steps to Reproduce
I copied the example from the docs for the server:
Prerequisites
Fastify version
4.20.0
Plugin version
8.2.0
Node.js version
18.17.0
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
13.4
Description
I have tried in many different environments (Replit, Stackblitz, locally, with and without ESM enabled), but I just cannot seem to be able to connect with a WS server created with this plugin. Network time in DevTools is stuck on "Pending".
Steps to Reproduce
I copied the example from the docs for the server:
Then I try to connect within DevTools:
ws
When I try the basic example from the
ws
package, it works instantly (after enabling ESM):Video demo
https://github.com/fastify/fastify-websocket/assets/876666/2031e15f-a88e-4cb8-9525-01826befe8f7
Expected Behavior
I would expect to be able to connect to the WS server.