diff --git a/src/robot_interface/endpoints/main_receiver.py b/src/robot_interface/endpoints/main_receiver.py index befa617..0ebd01a 100644 --- a/src/robot_interface/endpoints/main_receiver.py +++ b/src/robot_interface/endpoints/main_receiver.py @@ -27,7 +27,7 @@ class MainReceiver(ReceiverBase): def _handle_port_negotiation(message): endpoints = [socket.endpoint_description() for socket in state.sockets] - return {"endpoint": "negotiation/ports", "data": endpoints} + return {"endpoint": "negotiate/ports", "data": endpoints} @staticmethod def _handle_negotiation(message): @@ -42,10 +42,10 @@ class MainReceiver(ReceiverBase): """ # In the future, the sender could send information like the robot's IP address, etc. - if message["endpoint"] == "negotiation/ports": + if message["endpoint"] == "negotiate/ports": return MainReceiver._handle_port_negotiation(message) - return {"endpoint": "negotiation/error", "data": "The requested endpoint is not implemented."} + return {"endpoint": "negotiate/error", "data": "The requested endpoint is not implemented."} def handle_message(self, message): if "endpoint" not in message: