{"action":"created","issue":{"url":"https://api.github.com/repos/me-no-dev/ESPAsyncWebServer/issues/109","repository_url":"https://api.github.com/repos/me-no-dev/ESPAsyncWebServer","labels_url":"https://api.github.com/repos/me-no-dev/ESPAsyncWebServer/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/me-no-dev/ESPAsyncWebServer/issues/109/comments","events_url":"https://api.github.com/repos/me-no-dev/ESPAsyncWebServer/issues/109/events","html_url":"https://github.com/me-no-dev/ESPAsyncWebServer/issues/109","id":194748979,"number":109,"title":"Iterate over the list of WebSocket clients","user":{"login":"rakeshpai","id":86208,"avatar_url":"https://avatars.githubusercontent.com/u/86208?v=3","gravatar_id":"","url":"https://api.github.com/users/rakeshpai","html_url":"https://github.com/rakeshpai","followers_url":"https://api.github.com/users/rakeshpai/followers","following_url":"https://api.github.com/users/rakeshpai/following{/other_user}","gists_url":"https://api.github.com/users/rakeshpai/gists{/gist_id}","starred_url":"https://api.github.com/users/rakeshpai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rakeshpai/subscriptions","organizations_url":"https://api.github.com/users/rakeshpai/orgs","repos_url":"https://api.github.com/users/rakeshpai/repos","events_url":"https://api.github.com/users/rakeshpai/events{/privacy}","received_events_url":"https://api.github.com/users/rakeshpai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-10T06:37:26Z","updated_at":"2016-12-11T10:21:44Z","closed_at":null,"body":"Is it possible to get a list of the currently connected websocket clients?\r\n\r\nSay for eg. that I'm trying to implement this: Every minute, send temperature data to all connected STA clients, but not to any of the AP clients.\r\n\r\nGiven a client object, I can tell if it's connected over STA or AP by checking IP addresses, but I can't find a way to enumerate/iterate over all the connected clients. Is there a way to do this?\r\n\r\nI see that you are maintaining a [list of clients](https://github.com/me-no-dev/ESPAsyncWebServer/blob/master/src/AsyncWebSocket.h#L142), but this is a private member. Is there any way of accessing or iterating over this list externally? If not, could you consider making the list public in some way?\r\n\r\nThanks for the great lib!"},"comment":{"url":"https://api.github.com/repos/me-no-dev/ESPAsyncWebServer/issues/comments/266274051","html_url":"https://github.com/me-no-dev/ESPAsyncWebServer/issues/109#issuecomment-266274051","issue_url":"https://api.github.com/repos/me-no-dev/ESPAsyncWebServer/issues/109","id":266274051,"user":{"login":"DedeHai","id":6280424,"avatar_url":"https://avatars.githubusercontent.com/u/6280424?v=3","gravatar_id":"","url":"https://api.github.com/users/DedeHai","html_url":"https://github.com/DedeHai","followers_url":"https://api.github.com/users/DedeHai/followers","following_url":"https://api.github.com/users/DedeHai/following{/other_user}","gists_url":"https://api.github.com/users/DedeHai/gists{/gist_id}","starred_url":"https://api.github.com/users/DedeHai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DedeHai/subscriptions","organizations_url":"https://api.github.com/users/DedeHai/orgs","repos_url":"https://api.github.com/users/DedeHai/repos","events_url":"https://api.github.com/users/DedeHai/events{/privacy}","received_events_url":"https://api.github.com/users/DedeHai/received_events","type":"User","site_admin":false},"created_at":"2016-12-11T10:21:44Z","updated_at":"2016-12-11T10:21:44Z","body":"+1 for this!\r\nthe pubsub libary has a command to 'broadcast' to all connected clients, maybe add something like that with an added filter for STA or AP?"}}
{"actor":{"display_login":"DedeHai"}}