@wandelbots/nova-js 3.9.0-pr.280.ea391de → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,12 +45,11 @@ Documentation for the various API endpoints is available on your Nova instance a
|
|
|
45
45
|
|
|
46
46
|
## Opening websockets
|
|
47
47
|
|
|
48
|
-
`
|
|
49
|
-
|
|
48
|
+
`Nova` has various convenience features for websocket handling in general. Use `openReconnectingWebsocket` to get a persistent socket for a given Nova streaming endpoint that will handle unexpected closes with exponential backoff:
|
|
50
49
|
```ts
|
|
51
50
|
const joggingWebsocket = nova.openReconnectingWebsocket(`/cells/cell/controllers/ur5e/execution/jogging`)
|
|
52
51
|
|
|
53
|
-
|
|
52
|
+
joggingWebsocket.addEventListener("message", (ev) => {
|
|
54
53
|
console.log(ev.data)
|
|
55
54
|
})
|
|
56
55
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wandelbots/nova-js",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.9.0
|
|
4
|
+
"version": "3.9.0",
|
|
5
5
|
"description": "Official JS client for the Wandelbots API",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"packageManager": "pnpm@11.1.3+sha512.c85357fe17ca12dd23dd7071822666dfd7e3cb76fe214e3370b5ea2fb34f2a231185509b63e717f3cd0acb38dd3f8d82bcd5e8172400ae678b70ea4fbed0896d",
|