Skip to content
  • Sponsor python-websockets/websockets

  • Notifications You must be signed in to change notification settings
  • Fork 538
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

Closed
aaugustin opened this issue Aug 18, 2024 · 2 comments
Closed

Expose list of connections as an attribute of WebSocketServer #1486

aaugustin opened this issue Aug 18, 2024 · 2 comments

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.

@aaugustin
Copy link
Member Author

Documentation was updated, notably in 61a6a7a and 667e418.

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