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

Demo cannot connect to WebSockets #107

Open
jhvanderven opened this issue Oct 21, 2024 · 0 comments
Open

Demo cannot connect to WebSockets #107

jhvanderven opened this issue Oct 21, 2024 · 0 comments

Comments

@jhvanderven
Copy link

I am probably missing something very simple, but when I run the demo, the browser's developers tools console is full with messages that a connection to localhost:5000/collaboration/increment is failing.

I open Visual Studio, set Demo as the startup project and press F5.
Next I go to Visual Studio Code, navigate to Demo/Client and execute npm run dev in the terminal.

Then I navigate to localhost:5173 in Chrome and open the increment page.

I do the same with Firefox.

There is no sync.

Another Chrome tab or Chrome incognito window does sync.

What am I missing? What I do not understand anyway is why the port seems to be defined on the client (vite app) and not on the server (C# app). Perhaps this can be explained a bit better in the readme?

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

1 participant