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 list of connections as an attribute of WebSocketServer #1486

Open
aaugustin opened this issue Aug 18, 2024 · 1 comment
Open

Expose list of connections as an attribute of WebSocketServer #1486

aaugustin opened this issue Aug 18, 2024 · 1 comment

Comments

@aaugustin
Copy link
Member

It should be as simple as::

@property
def connections(self):
    return self.handlers.keys()
@aaugustin
Copy link
Member Author

Follow-up task: update documentation to take advantage of this new API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant