diff --git a/endpoint.lsl b/endpoint.lsl index b0e393e..0a69b70 100644 --- a/endpoint.lsl +++ b/endpoint.lsl @@ -55,7 +55,7 @@ default if(llJsonGetValue(body, ["secret_key"]) == SECRET_KEY) { string command = llJsonGetValue(body, ["command"]); - if(command == "init") + if(command == "connect") { respond(id, 200, "uuid", llGetKey()); connected = 1; diff --git a/lib.py b/lib.py index ce808db..690789d 100644 --- a/lib.py +++ b/lib.py @@ -35,7 +35,7 @@ def connect(url: str, secret_key: str) -> str: """Connect to the given URL. Returns the UUID of the endpoint.""" - uuid = send_cmd(url, secret_key, "init").get("uuid", None) + uuid = send_cmd(url, secret_key, "connect").get("uuid", None) if not uuid: raise InvalidResponseError("Error: Remote did not return its UUID")