> ## Documentation Index
> Fetch the complete documentation index at: https://docs.generalrobotics.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# NexusClient

## NexusClient

Inherits from: `object`

Dynamic client that mirrors the remote robot's interface.

Provides fast WebSocket communication with immediate disconnect detection.
Best suited for safety-critical robotics applications and real-time control.

### **init**

```python theme={null}
NexusClient.__init__(robot_ip: str, port: int = 4774) -> None
```

Initialize NexusClient to connect to remote robot.

<ResponseField name="Arguments">
  <ParamField query="robot_ip (str)" type="str" required>
    IP address of the robot
  </ParamField>

  <ParamField query="port (int)" type="int">
    Port number (default 4774)
  </ParamField>
</ResponseField>

<ResponseField name="Returns">
  <ResponseField name="returns" type="None" />
</ResponseField>

<ResponseField name="Raises">
  <ParamField query="ConnectionError" type="">
    If connection fails or times out
  </ParamField>
</ResponseField>

### is\_connected

```python theme={null}
NexusClient.is_connected() -> bool
```

Check if client is connected to robot.

<ResponseField name="Returns">
  <ResponseField name="bool" type="bool">
    True if WebSocket connection is active
  </ResponseField>
</ResponseField>

### disconnect

```python theme={null}
NexusClient.disconnect() -> None
```

Disconnect from robot.

Closes the WebSocket connection and cleans up resources.

<ResponseField name="Returns">
  <ResponseField name="returns" type="None" />
</ResponseField>
