websockets icon indicating copy to clipboard operation
websockets copied to clipboard

Expose list of connections as an attribute of WebSocketServer

Open aaugustin opened this issue 1 year ago • 1 comments

It should be as simple as::

@property
def connections(self):
    return self.handlers.keys()

aaugustin avatar Aug 18 '24 06:08 aaugustin

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

aaugustin avatar Aug 22 '24 19:08 aaugustin

Documentation was updated, notably in 61a6a7a99534e2522773476fc72ca615f5a6ea97 and 667e418ae474235c2bc26024df11c8e1d573d27a.

aaugustin avatar Feb 16 '25 10:02 aaugustin