> For the complete documentation index, see [llms.txt](https://extend-robotics.gitbook.io/user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://extend-robotics.gitbook.io/user-guide/amas-vr-application/multi-connection-handling.md).

# Multi Connection Handling

From version v2025.07, multiple users can connect to the Cortex simultaneously.&#x20;

The first user connected to the Cortex will be the controller and will receive a prompt indicating their role as the controller, one for each robot for which control is allowed. The message will have the following components:&#x20;

* Name of the robot for which control is allowed
* Code: MCC0001
* Message Body : Robot is currently under control. All control functionalities are enabled.

<figure><img src="https://content.gitbook.com/content/UH6fjabgqAq3hJNlUkSJ/blobs/ZQpIJKaTO4PFPzWfboD5/RobotControlAllowed.png" alt=""><figcaption></figcaption></figure>

Any secondary user who subsequently connects to the Cortex will not be able to control the digital twin, but will be able to see the robot's movements made by the primary user. The secondary users will get a prompt for each robot that they are not the controller. The message will have the following components:&#x20;

* Name of the robot for which control is not allowed&#x20;
* Code: MCC0002
* Message Body : The robot is currently under the control of another user, and the digital twin will show their movements. All control functionalities are disabled.

<figure><img src="https://content.gitbook.com/content/UH6fjabgqAq3hJNlUkSJ/blobs/p4Zg2oT7nDT8wGk6imOX/ControlNotAllowed.png" alt=""><figcaption></figcaption></figure>

The secondary users will also not be able to clear any arm safety or IK issues. If they attempt to clear issues, they will receive an error. The error message will have the following components:&#x20;

* Name of the robot&#x20;
* Code: MNC0002
* Message Body : The robot is currently being operated by another user, control functionality is disabled.

<figure><img src="https://content.gitbook.com/content/UH6fjabgqAq3hJNlUkSJ/blobs/QIfxXt9dimNlz2bWgwR9/ClearErrorNotAllowed.png" alt=""><figcaption></figcaption></figure>

The secondary users will be added to a connection queue, which transfers control on a first-come, first-served basis when the primary user disconnects. After 5 seconds of disconnection, the next in line user will get a request to accept or decline control (one each for each robot).&#x20;

If the secondary user accepts the request, they become the primary controller, and if they decline, the following user in line receives the 'authorise control' message.

<figure><img src="https://content.gitbook.com/content/UH6fjabgqAq3hJNlUkSJ/blobs/MryxO96ZU8RHn2XdJIVd/SwitchRequest.png" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://extend-robotics.gitbook.io/user-guide/amas-vr-application/multi-connection-handling.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
