wss.clients.length always returns undefined even if the clientTracking option is set to true

Created on 14 Feb 2017  路  2Comments  路  Source: websockets/ws

Hi, from [email protected] on, wss.clients.length always returns undefined even if the clientTracking option is set to true.

Most helpful comment

No, not everyone tracks release notes. So this question was perfectly legit and helped me as well.

All 2 comments

I wonder if people read the release notes. clients is no longer an array but a set. You should use Set.prototype.size.

No, not everyone tracks release notes. So this question was perfectly legit and helped me as well.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bartosz-m picture bartosz-m  路  3Comments

quesurifn picture quesurifn  路  3Comments

pmcalabrese picture pmcalabrese  路  4Comments

nodesocket picture nodesocket  路  4Comments

makc picture makc  路  4Comments