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
## Description
Describe your changes.
## Motivation and Context
Why is this change required? What problem does it solve? If it fixes an
open
issue, please link to the issue here.
## Documentation impact
- [ ] Documentation update required
- [ ] Documentation updated [in another PR](_)
- [ ] No documentation update required
## Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to
not work as expected)
Copy file name to clipboardExpand all lines: examples/selective-subscription/README.md
+24-24Lines changed: 24 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,30 +6,30 @@ A complete example demonstrating Fishjam's selective subscription flow with both
6
6
7
7
1. Install dependencies:
8
8
9
-
```bash
10
-
yarn
11
-
```
9
+
```bash
10
+
yarn
11
+
```
12
12
13
13
2. Install frontend dependencies:
14
14
15
-
```bash
16
-
yarn install:frontend
17
-
```
15
+
```bash
16
+
yarn install:frontend
17
+
```
18
18
19
19
3. Copy and configure the environment:
20
20
21
-
```bash
22
-
cp .env.example .env
23
-
```
21
+
```bash
22
+
cp .env.example .env
23
+
```
24
24
25
-
Set the following in`.env`:
25
+
Set the following in `.env`:
26
26
27
-
```
28
-
FISHJAM_ID=your_fishjam_id
29
-
FISHJAM_TOKEN=your_fishjam_management_token
30
-
```
27
+
```
28
+
FISHJAM_ID=your_fishjam_id
29
+
FISHJAM_TOKEN=your_fishjam_management_token
30
+
```
31
31
32
-
fishjam_id and fishjam_management_token can be found at your <https://fishjam.io> dashboard
32
+
fishjam_id and fishjam_management_token can be found at your <https://fishjam.io> dashboard
33
33
34
34
### Start both backend and frontend
35
35
@@ -67,29 +67,29 @@ BACKEND API
67
67
- Create a new peer in a room configured for manual subscription.
68
68
- Example:
69
69
70
-
```bash
71
-
curl http://localhost:3000/peers
72
-
```
70
+
```bash
71
+
curl http://localhost:3000/peers
72
+
```
73
73
74
74
- Response: JSON containing the created peer ID and a peer token.
75
75
76
76
- POST /subscribe_peer?subId=<SUBSCRIBER_ID>&prodId=<PRODUCER_ID>
77
77
- Subscribe the subscriber peer (subId) to all tracks published by the producer peer (prodId).
78
78
- Example:
79
79
80
-
```bash
81
-
curl -X POST "http://localhost:3000/subscribe_peer?subId=72457c2f-e4d2-46aa-9ff2-5a400f169df7&prodId=41ed79fb-6ce1-47b0-b5c8-1c33b78d95b4"
82
-
```
80
+
```bash
81
+
curl -X POST "http://localhost:3000/subscribe_peer?subId=72457c2f-e4d2-46aa-9ff2-5a400f169df7&prodId=41ed79fb-6ce1-47b0-b5c8-1c33b78d95b4"
82
+
```
83
83
84
84
- Response: JSON status and any error messages.
85
85
86
86
- POST /subscribe_tracks?subId=<SUBSCRIBER_ID>&tracks=<TRACK_ID>,<TRACK_ID>...
87
87
- Subscribe the subscriber peer (subId) to a comma-separated list of specific tracks.
88
88
- Example (subscribe to one track):
89
89
90
-
```bash
91
-
curl -X POST "http://localhost:3000/subscribe_tracks?subId=41ed79fb-6ce1-47b0-b5c8-1c33b78d95b4&tracks=72457c2f-e4d2-46aa-9ff2-5a400f169df7:3c7ccb28-542c-418d-aaa1-e25b4c067824"
92
-
```
90
+
```bash
91
+
curl -X POST "http://localhost:3000/subscribe_tracks?subId=41ed79fb-6ce1-47b0-b5c8-1c33b78d95b4&tracks=72457c2f-e4d2-46aa-9ff2-5a400f169df7:3c7ccb28-542c-418d-aaa1-e25b4c067824"
0 commit comments