# 使用套接字(SOCKET)

您可以使用 `套接字（SOCKET）` 来获取作业的实时状态

关键特点:

Endpoint: `wss://app.real-api.online/login`

登录参&#x6570;**:**

`user_name`

`app_key`

`app_secret`

`prod_key`

`ins_id`

特定项目类型的登录参数:\
`wss://app.real-api.online/login?app_key=<`**`app_key`**`>&prod_key=<`**`prod_key`**`>&ins_id=<`**`ins_id`**`>`

所有项目的登录参数:\
`wss://app.real-api.online/login?app_key=<`**`app_key`**`>&prod_key=<`**`prod_key`**`>&ins_id=<`**`ins_id`**`>&`exp\_from`=<`exp\_from`>`

登录响应:

```json
{
    "type": "auth_success",
    "msg": null,
    "data": [
        {
            "jobID": <job_id>,
            "status": <job_status>,
            "used": <rendered_time_used_in_sec>,
            "outExt": <output_extension>,
            "jobExt": <input_extension>,
            "expFrom": <exported_from>,
            "samples": <samples_used_in_rendering>,
            "charges": <amount_charged>,
            "chargeType": "balance",
            "renderTime": <time_when_render_start>
        },
        {
            "jobID": <job_id>,
            "status": <job_status>,
            .....
        }
    ]
}
```

<figure><img src="https://github.com/Realistic3D/RealAPI/blob/main/docs/cn/.gitbook/assets/show_jobs.png" alt=""><figcaption></figcaption></figure>
