apteryxxyz/next-ws

Error when having middleware.ts

Closed this issue · 1 comments

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.

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