You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/realtime/backend/metadata.mdx
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -219,8 +219,4 @@ async function monitorTypedProgress(runId: string) {
219
219
}
220
220
```
221
221
222
-
## Authentication
223
-
224
-
Backend metadata subscriptions support both server-side and client-side authentication. For server-side authentication, use your API key. For client-side authentication, you must generate a public access token with read access to the specific run, task, or tag. See our [authentication guide](/realtime/auth) for details.
Copy file name to clipboardExpand all lines: docs/realtime/backend/subscribe.mdx
-12Lines changed: 0 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,6 @@ These functions allow you to subscribe to run updates from your backend code. Ea
10
10
11
11
Subscribes to all changes to a specific run.
12
12
13
-
<RequestExample>
14
-
15
13
```ts Example
16
14
import { runs } from"@trigger.dev/sdk/v3";
17
15
@@ -20,8 +18,6 @@ for await (const run of runs.subscribeToRun("run_1234")) {
20
18
}
21
19
```
22
20
23
-
</RequestExample>
24
-
25
21
This function subscribes to all changes to a run. It returns an async iterator that yields the run object whenever the run is updated. The iterator will complete when the run is finished.
26
22
27
23
**Authentication**: This function supports both server-side and client-side authentication. For server-side authentication, use your API key. For client-side authentication, you must generate a public access token with read access to the specific run. See our [authentication guide](/realtime/auth) for details.
@@ -32,8 +28,6 @@ This function subscribes to all changes to a run. It returns an async iterator t
32
28
33
29
Subscribes to all changes to runs with a specific tag.
34
30
35
-
<RequestExample>
36
-
37
31
```ts Example
38
32
import { runs } from"@trigger.dev/sdk/v3";
39
33
@@ -42,8 +36,6 @@ for await (const run of runs.subscribeToRunsWithTag("user:1234")) {
42
36
}
43
37
```
44
38
45
-
</RequestExample>
46
-
47
39
This function subscribes to all changes to runs with a specific tag. It returns an async iterator that yields the run object whenever a run with the specified tag is updated. This iterator will never complete, so you must manually break out of the loop when you no longer want to receive updates.
48
40
49
41
**Authentication**: This function supports both server-side and client-side authentication. For server-side authentication, use your API key. For client-side authentication, you must generate a public access token with read access to the specific tag. See our [authentication guide](/realtime/auth) for details.
@@ -54,8 +46,6 @@ This function subscribes to all changes to runs with a specific tag. It returns
54
46
55
47
Subscribes to all changes for runs in a batch.
56
48
57
-
<RequestExample>
58
-
59
49
```ts Example
60
50
import { runs } from"@trigger.dev/sdk/v3";
61
51
@@ -64,8 +54,6 @@ for await (const run of runs.subscribeToBatch("batch_1234")) {
64
54
}
65
55
```
66
56
67
-
</RequestExample>
68
-
69
57
This function subscribes to all changes for runs in a batch. It returns an async iterator that yields a run object whenever a run in the batch is updated. The iterator does not complete on its own, you must manually `break` the loop when you want to stop listening for updates.
70
58
71
59
**Authentication**: This function supports both server-side and client-side authentication. For server-side authentication, use your API key. For client-side authentication, you must generate a public access token with read access to the specific batch. See our [authentication guide](/realtime/auth) for details.
0 commit comments