-
Notifications
You must be signed in to change notification settings - Fork 184
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
Socket not working when I do a pub build #2
Comments
1. fix logger issue. 2. fix the issue of the changing transport from polling to websocket 3. make a test case
I fixed some issues which may relate to this issue, you can give it a try. (remember to run |
Hi, I have been having the same problem, but slightly different. On I am also deploying my app on digital ocean VPS and over there I would get a huge number of 400 errors(with same response body), and finally connect after 1 or 2 minutes. Below is a screenshot of network activities on VPS. My server is written in node:
I am using namespaces also, for each client:
Client:
As far as I can see there's very little custom config used. Could you please take a look as this? I can discuss more in detail. This lib is critical for my project, so please help. Thanks, |
This issue is fixed in https://github.com/rikulo/socket.io-dart, so you should upgrade them by running |
I've got the socket working when I have my client files running on pub serve through Webstorm. (Although the connection is sometimes finnicky.)
But when I do a pub build so that I can serve up the files from my server, the socket doesn't seem to work at all.
Here's my (relevant) dart client code:
And here's the errors I'm getting in Chrome:
The text was updated successfully, but these errors were encountered: