diff --git a/run.py b/run.py index fa42039..3658360 100755 --- a/run.py +++ b/run.py @@ -205,7 +205,12 @@ def start_server_socket(cable_list): if call == "send": pass elif call == "request": - pass + results = jbs.search(data["string"])["hits"] + dataout = dict() + dataout["cables"] = list() + for result in results: + dataout["cables"].append(result["fullspecs"]) + send_data(decoded["type"], "send", dataout, client_id) case "keyboard": fprint("keyboard message") if call == "send":