Comments (4)
After looking through the mqtt
library that this is extending, it looks like the first parameter of the super
(the callback) is called under a few different scenarios. That's fine. What we should just do is that in createWebSocketStream
, before you create a new Websocket, you should clean up the old websocket that was created.
from aws-mqtt.
I will take a look at this over the weekend. Feel free to submit a PR if you already have this fixed.
Thanks!
from aws-mqtt.
I take it back. It was my fault. I had 2 issues:
- I wasn't cleaning up event listeners
- I misunderstood just how critical
clientId
uniqueness must be per client (I was thinking "per user", but that was wrong - per client is the correct terminology). That was pointed out in the README, but I misunderstood it.
So, I have made this MR with my 2 issues documented, in hopes to help other people not have this same problem: #6.
The solution I pointed out above does not seem to fix anything real, so I say we leave it as it is.
Thanks,
from aws-mqtt.
@cgood92 @kmamykin
After the net is broken, it is reconnected, but there is no data.
publish-subscribe
Subscribe to success
Data reception success
Off the net
Link offline
Reopen the network
After that, the link has been successful. Close, offlin, connection is successful, close, offline has been circulating, neither resubscribe nor cancel subscription.
Want to ask what you need to set up to continue the data transfer
from aws-mqtt.
Related Issues (20)
- mqttClient.end() result with clientInitiatedDisconnect = False HOT 1
- Issue with last will message HOT 1
- [Question, Feature] Use sts.AssumeRole credentials possible? HOT 1
- Messages show as being published yet do not appear in MQTT HOT 1
- Working with AWS EC2MetadataCredentials Provider HOT 1
- process.version.split is not a function HOT 3
- Error in connection establishment HOT 1
- Error in Angular 8+ HOT 2
- Upon connecting, cannot subscribe without setting client.connected = true
- Cognito Auth tokens and long running websocket
- Config Publish and subscribe topic with QOS1! HOT 1
- Inability to set clean flag to false
- How can I end correctly the connection?
- Socket Closing Abruptly HOT 1
- Code 1005 is reserved and may not be used in React Native
- crypto could not be found within the project. HOT 1
- Expires option and keepalive option of MQTT.js are the same ?
- When I running node timePublisher.js I couldn’t subscribe to a specific topic, it’s just publishing
- Risk: over-authorization of AWS IoT policy
- severity vulnerabilities due to dependencies
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 aws-mqtt.