Skip to content
New issue

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

Error when having middleware.ts #33

Closed
Adrian11asd opened this issue Jun 12, 2024 · 1 comment
Closed

Error when having middleware.ts #33

Adrian11asd opened this issue Jun 12, 2024 · 1 comment

Comments

@Adrian11asd
Copy link

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants