apteryxxyz / next-ws

Add support for WebSockets in Next.js app directory.
https://npmjs.com/next-ws
171 stars 12 forks source link

Error when having middleware.ts #33

Closed Adrian11asd closed 3 months ago

Adrian11asd commented 3 months ago

image image2 As shown in the images, there is an error with .bind.

I've done some testing, making a new nextjs project. in the brand new project the SOCKET endpoint works fine. The problem only happens when I have a middleware.ts file. It happens even when middleware.ts is completely empty.

apteryxxyz commented 3 months ago

Related issue: #27 You need to exclude your websocket route within your middleware config.