Skip to content

Make clientsCount public - #675

Merged
darrachequesne merged 1 commit into
socketio:mainfrom
tyilo:public-clients-count
Apr 19, 2023
Merged

darrachequesne merged 1 commit into
socketio:mainfrom
tyilo:public-clients-count

Conversation

@tyilo

@tyilo tyilo commented Apr 19, 2023

Copy link
Copy Markdown
Contributor

Fixes #672

The kind of change this PR does introduce

  • a bug fix
  • a new feature
  • an update to the documentation
  • a code change that improves performance
  • other

Current behaviour

clientsCount is private which it shouldn't be as it is explicitly mentioned as something you can use in both the README:

- `clientsCount` _(Number)_: number of connected clients.

and the website: https://socket.io/docs/v4/server-instance/#serverengine

New behaviour

clientsCount is public.

Other information (e.g. related issues)

@darrachequesne
darrachequesne merged commit bd6d471 into socketio:main Apr 19, 2023
@darrachequesne

Copy link
Copy Markdown
Member

Thanks!

@tyilo
tyilo deleted the public-clients-count branch April 20, 2023 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants