def start(self):
        """
        Start the server.
        """
        s = socket.socket()
        s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
        s.bind(('', config.socketport))
        s.listen(1)

        try:
            while 1:
                conn, addr = s.accept()
                print('Connected by', addr)
                newClient = websocketclient.WebSocketClient(conn, addr, self)
                self.clients.append(newClient)
                newClient.start()
        except __HOLE__:
            [client.close() for client in self.clients]
            s.close()
dataset/ETHPy150Open adngdb/python-websocket-server/websocketserver.py/WebSocketServer.start