title: WebSocket broadcast to all clients using Python
body: <p>I am using a simple Python based web socket application:</p>
  
  <pre><code>from SimpleWebSocketServer import WebSocket, SimpleWebSocketServer
  
  class SimpleEcho(WebSocket):
  
      def handleMessage(self):
  
          if self.data is None:
              self.data = ''
  
          # echo message back to client
          self.sendMessage(str(self.data))
  
      def handleConnected(self):
          print self.address, 'connected'
  
      def handleClose(self):
          print self.address, 'closed'
  
  server = SimpleWebSocketServer('', 8000, SimpleEcho)
  server.serveforever()
  </code></pre>
  
  <p>It echoes messages sent by each client to the same individual client, but I I am trying to send any message received by the ws server to all clients connected to it. Can someone help me please?</p>