Skip to content
Discussion options

You must be logged in to vote

Actually there is no support for this, anyway you can access to clients instances from broker.clients that is an object where key is client id and value is the client instance, when a client connects we set a keepAliveTimeout that is rescheduled every time a packet is received from client: https://github.com/moscajs/aedes/blob/main/lib/handlers/index.js#L65C1-L65C1

The keep alive interval is set from the connect packet keepAlive timeout as shown in the first link.

If you think that this is a bug in aedes could you consider submitting a PR to fix it? This could cause memory leaks if client instances are not removed

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Gianluca-Casagrande-Stiga
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants