Comments (3)
I fixed some issues which may relate to this issue, you can give it a try. (remember to run pub upgrade
first), and I also make a test case with a timer to demonstrate the problem you encountered, but it works well for me on both dartium or browser (compiling to js) environment.
from socket.io-client-dart.
Hi,
I have been having the same problem, but slightly different.
On pub serve
things are working fine, but on pub build
, locally I would get a few 400 errors but eventually succeed to connect. Below is a screenshot:
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:
var app = express()
var server = http.createServer(app);
server.listen(port);
var io = require('socket.io').listen(server);
I am using namespaces also, for each client:
var socketPath = '/' + req.session.user.username
io.of(socketPath).on('connection', function (socket) {
...
}
Client:
String namespace = 'http://localhost:5000' + socketPath;
print('connecting to $namespace');
socket = IO.io(namespace);
socket.on('connect', (_) {
print('connected to $namespace');
....
}
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,
Nick
from socket.io-client-dart.
This issue is fixed in https://github.com/rikulo/socket.io-dart, so you should upgrade them by running pub upgrade
.
from socket.io-client-dart.
Related Issues (20)
- Two different socket instances share same "path" event when setPath() is defined HOT 2
- Error Timeout HOT 7
- Error on dispose HOT 4
- Would be great to somehow catch when connection with the server is down.
- Missing Websocket listening events HOT 2
- js version is too high. Many popular libraries depend on 0.6.x. Version is incompatible. HOT 4
- Can this package migrate `js` to `web`? HOT 2
- hot restart error
- Hot Reload Causes Multiple SocketIO Client Instances In Flutter Web
- what does the `autoConnect` property do? please review my flutter code. HOT 2
- WebSocketException: Connection to 'APIURL:0/socket.io/?EIO=4&transport=websocket#' was not upgraded to websocket HOT 4
- Usage proxy
- could we ack when we receive a new event HOT 3
- error with timeout and emitWithAck
- receiving duplicate message HOT 3
- This says 'client', what if i want my server in dart? anything i should be looking into? HOT 5
- Unable to get Callback of NodeJS into Flutter
- Supporting multiple versions of Socket.IO HOT 1
- [Flutter Web] IO server disconnect HOT 1
- type 'String' is not a subtype of type 'int' of 'index' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from socket.io-client-dart.