> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes.

# userId$

> Observable of the participant's user ID.

```ts
get userId$(): Observable<string | undefined>
```

Observable of the participant's user ID.

## userId

```ts
get userId(): string | undefined
```

User ID of this participant, or `undefined` if not available.

## **Examples**

```ts
participant.userId$.subscribe((userId) => {
  console.log('userId:', userId);
});
```