Comments (2)
Yes even I am facing this issue. The disconnect event on client side doesn't seem to work correctly. when the server dies or when the server sometimes discards the client sockets (don't know why). These disconnect events are not catched by the client. So there is really no way to know if the connection is still alive. Anybody who can help please?
from flashsocket.io.
Here's a quick hack.
Create a boolean in FlashSocket and check it at a greater interval than the heartbeat interval using a flash timer.
Set the boolean true every time you receive data from the server and set it to false at the timer interval.
Hence at the timer interval if the client has not received anything from the server then the boolean will be set to false at which point you can call the disconnect function and detect whether the client has disconnected.
Reconnection will also be possible in this case because the boolean will be set to true as soon as data is received from the server and the client will show as reconnected.
from flashsocket.io.
Related Issues (20)
- Support for multibyte encodings HOT 2
- Problem with transfer the project to a hosting HOT 4
- Large messages (>40kb) from client to server don't succeed. HOT 3
- Support bidirectional ACK
- support for 0.9 HOT 4
- corossdomain not loaded =( HOT 2
- Support for Node v0.10.x HOT 8
- Discovery error with restfiy and socket.io
- GOT ALERT! type=0
- Need a example with server.js and with flashdevelop project file
- Node v0.10.x / Socket.io 0.9 do not work HOT 1
- Does this work with latest socketIO 1.3.4 and if not what changes are needed? HOT 5
- License?
- IWebSocketWrapper reference HOT 4
- cant seem to connect HOT 4
- Can't connect. Connected Event never fires. HOT 6
- I could not connect with the help of examples. HOT 1
- Cannot connect using example. "Variable URLUtil not defined" HOT 3
- feature requests: callbacks on event 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 flashsocket.io.