Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose nrSessions #4

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Expose nrSessions #4

wants to merge 4 commits into from

Conversation

HDegroote
Copy link
Contributor

Useful for metrics (otherwise the private prop _sessions needs to be accessed to get the nr of sessions)

Copy link
Contributor

@kasperisager kasperisager left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd make the sessions getter returns _sessions instead, that's much simpler than introducing a new and somewhat unfortunately named property. The point of making sessions return an iterator was to avoid exposing a writable public API, but that was only for the sake of being defensive.

@HDegroote
Copy link
Contributor Author

Nice, that's much easier/cleaner indeed. Updated

test.mjs Outdated Show resolved Hide resolved
Co-authored-by: Kasper Isager Dalsgarð <kasperisager@hey.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants