def websocket_wss(): try: wss = create_connection(wss_url, timeout=10) if wss.status == 101: wss.send(data) print(ws.recv()) except BaseException as msg: print('失败: ' + str(msg))
def websocket_wss(): try: wss = create_connection(wss_url, timeout=10) if wss.status == 101: wss.send(data) print(ws.recv()) except BaseException as msg: print('失败: ' + str(msg))