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
@@ -96,21 +96,29 @@ TypeScript declaration files are included in the package. In most projects, conf
96
96
97
97
Then `import * as rclnodejs from 'rclnodejs'` works the same as the JavaScript example at the top of this README.
98
98
99
-
## rosocket — ROS 2 gateway for the browser
99
+
## ROS 2 in the browser
100
100
101
-
A tiny WebSocket gateway to ROS 2, built into `rclnodejs`. Exposes ROS 2 topics and services as plain WebSocket URLs — a lightweight alternative to the rosbridge + roslibjs stack. Browsers use only built-in `WebSocket` + `JSON`; no JavaScript library required.
101
+
`rclnodejs` ships **two** ways to reach ROS 2 from the browser — pick one based on how much glue you want to write.
-**`rclnodejs/web`** — typed, allow-listed, `curl`-able browser SDK. A `web.json` file is your public API; the browser SDK types `call` / `publish` / `subscribe` end-to-end from your ROS 2 message types; every capability is also a plain HTTP endpoint (`curl -X POST http://<host>/capability/call/<name>`), so shell scripts, Postman, and AI-agent tool-use just work. _New in `2.0.0-beta.0`._
See the [Web SDK guide](https://github.com/RobotWebTools/rclnodejs/tree/develop/web).
114
+
115
+
-**`rosocket`** — thin WebSocket gateway, zero browser dependencies (just built-in `WebSocket` + `JSON`). Best for quick prototypes and `roslibjs`-style apps.
See the [rosocket guide](https://github.com/RobotWebTools/rclnodejs/tree/develop/rosocket) for the URL scheme, service calls, and the programmatic `startRosocket()` API.
121
+
See the [rosocket guide](https://github.com/RobotWebTools/rclnodejs/tree/develop/rosocket).
0 commit comments