Commit 6f06958
authored
[docs] Demonstrate web-native SSE subscribe in READMEs (#1554)
This PR updates the project READMEs to highlight a “web-native” way to subscribe to ROS 2 topics using Server-Sent Events (SSE) via the browser’s built-in `EventSource`, without requiring a browser SDK.
**Changes:**
- Add an `EventSource` snippet demonstrating SSE-based topic subscription in the root `README.md`.
- Mirror the same SSE subscription snippet in `scripts/npmjs-readme.md` (used for npm packaging/readme generation).
Fix: #15101 parent df5044f commit 6f06958
2 files changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
136 | 143 | | |
137 | 144 | | |
138 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
113 | 120 | | |
114 | 121 | | |
115 | 122 | | |
| |||
0 commit comments