miguelgrinberg / flask-sock

Modern WebSocket support for Flask.
MIT License
274 stars 24 forks source link

Broadcasting to all connected clients #9

Closed imrankhan17 closed 3 years ago

imrankhan17 commented 3 years ago

Hi, is there a way to get a list of all connected clients and then to broadcast a message to them? This is the same functionality as this.

miguelgrinberg commented 3 years ago

No. This package just offers the basic connectivity support. Higher level packages that use this as a dependency do offer broadcasting as an option (such as Socket.IO or Turbo-Flask).

CSutter5 commented 2 years ago

I mean you can make a list and them add and remove them from the list. It might not be idea but it works. Then loop over the list to send data

miguelgrinberg commented 2 years ago

Correct. That is what those other packages I mentioned do.