def test_connection(self): import socket time.sleep(2) sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) result = sock.connect_ex((Config.get_client_ws_ip(), Config.web_socket_port)) if result == 0: log.debug("Port is open") else: log.error("Port: {} could not be opened, check antivirus configuration".format(Config.web_socket_port))
def test_connection(self): import socket time.sleep(2) sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) result = sock.connect_ex( (Config.get_client_ws_ip(), Config.web_socket_port)) if result == 0: log.debug("Port is open") else: log.error( "Port: {} could not be opened, check antivirus configuration". format(Config.web_socket_port))