You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for this great plugin. This works well until I add the socket with Nestjs.
I have a working demo here nestjs-vite-demo.
Socket is working with Nest default cli.
1- Start the server
pnpm run start
2- Visit the page localhost:3000. You will see the client page.
The status shows the client is connected to the socket server, and you can click Send Message to send the message to the server and get the reply from the server.
Here are the steps to reproduce the problem.
1- Start the server with vite
pnpm run start:vite
2- Visit the page localhost:3000. The client will never connect to the server.
Possible solution.
#87 I can't get the production build working with Vite. I will report on the other issue as well.
I hope someone can give a hint on how to solve this. Thank you!
The text was updated successfully, but these errors were encountered:
Hi, thanks for this great plugin. This works well until I add the socket with Nestjs.
I have a working demo here nestjs-vite-demo.
Socket is working with Nest default cli.
1- Start the server
2- Visit the page localhost:3000. You will see the client page.
![image](https://private-user-images.githubusercontent.com/771703/335853216-69be3a4b-579c-4dc8-8850-928f95fb54f5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MDAzNDUsIm5iZiI6MTczOTYwMDA0NSwicGF0aCI6Ii83NzE3MDMvMzM1ODUzMjE2LTY5YmUzYTRiLTU3OWMtNGRjOC04ODUwLTkyOGY5NWZiNTRmNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQwNjE0MDVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01ODdhOTk4NzY3MjI4MTE5NWIwY2I2ZWU1MWY5ZmZiM2NjN2RhMTYzMzY0NWIwNDkyYzBjZWNlNmI3ZTU1MGZkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.jzbIeIJW1asMxZBhToa7_36SJUUysxaXcpbEMJSNgiQ)
The status shows the client is connected to the socket server, and you can click
Send Message
to send the message to the server and get the reply from the server.Here are the steps to reproduce the problem.
1- Start the server with vite
2- Visit the page localhost:3000. The client will never connect to the server.
![image](https://private-user-images.githubusercontent.com/771703/335853356-eacf17c4-d105-4117-b847-0774759a3d93.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MDAzNDUsIm5iZiI6MTczOTYwMDA0NSwicGF0aCI6Ii83NzE3MDMvMzM1ODUzMzU2LWVhY2YxN2M0LWQxMDUtNDExNy1iODQ3LTA3NzQ3NTlhM2Q5My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQwNjE0MDVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04YWIyMGY4YTM3NzI2NWU2ZWZmMmU3NWYxNjExYWNkMGUwZDc0MmI4MDk5NzAzYWNhODg4M2JkNjFkMDdjN2M3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.0GoJV19Yje0ONo14nNTZJ5WXRvRhx_l-afbLAU-ahuQ)
Possible solution.
#87 I can't get the production build working with Vite. I will report on the other issue as well.
I hope someone can give a hint on how to solve this. Thank you!
The text was updated successfully, but these errors were encountered: