def stop_client(self):
        self.log.info("Stopping socket client")
        self.client_socket.close()
        self.client_socket = None
Stops and shuts down the socket client.
dataset/ETHPy150Open missionpinball/mpf/mpf/plugins/socket_events.py/SocketClient.stop_client