forked from rauchg/chat-example
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Cannot establish polling connection #79
Comments
Except the code showed above, the rest of the code is exactly the same as the repositories. |
@hatsuroku were you able to find the cause of the issue? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using Firefox (108.0, MacOS 13.1).
When I run this project, the browser debugger shows there's some 500 responses from the server.
I added this code to the
index.js
, and the server console logs:I guess the problem is: the websocket connection was established successfully, but the polling connection failed.
So I tried to add a parameter to allow only polling:
Then, the connection never establishes successfully. The browser sends requests and gets 500 responses infinitely. The server also gets "Session ID unknown" infinitely.
Looks like a new connection starts to establish when the previous connection hasn't finished establishing.
I've tried the latest version (4.5.4) of "socket.io" and "socket.io-client", the behavior is the same.
And I found the polling connection can be successfully established in the latest version of Chrome, but failed in Edge as in Firefox.
How can I solve this?
The text was updated successfully, but these errors were encountered: