# RtcConnection (/zh-CN/api-reference/rtc/harmonyos/class-rtcconnection)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
```ts
export class RtcConnection {
public localUid:number = 0;
public channelId:string = "";
constructor(channelId:string,uid:number) {
this.channelId = channelId;
this.localUid = uid;
}
}
```
##
频道名。
本地用户 ID。