title: Show all the clients connected to a socket server and send them data
body: <p>I have this simple code:</p>
  
  <pre><code>import socket
  
  socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  socket.bind((host, port))
  socket.listen()
  while True:
      client_socket, addr = socket.accept()
      send = input("Send: ") # but I need a way to send it to all the clients connected
      if send == "devices":
      # here I'd have a list of all devices connected
      client_socket.send(send.encode())
      data = client_socket.recv(4096)
      print (data)
  </code></pre>
  
  <p>As I wrote in the comments, I need a way to manage them all in one. How can I do? Maybe with _thread library?</p>