# Phoenix Channels

## WebSocket 连接

Monetarie STA 使用 Phoenix Channels 提供实时通信。

### 连接端点

```
wss://staapi-planner.monetarie.com.br/socket
```

## 可用频道

### files:lobby

监听所有文件事件。

```javascript
const channel = socket.channel('files:lobby', {})
```

### config:updates

监听配置变更。

```javascript
const channel = socket.channel('config:updates', {})
```

## 事件格式

```json
{
  "event": "file_updated",
  "payload": {
    "id": "uuid",
    "status": "completed",
    "updated_at": "2026-02-05T10:00:00Z"
  }
}
```
