@owlmeans/client-socket 0.1.18-rc.16 → 0.1.18-rc.18

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 CHANGED
@@ -22,9 +22,12 @@ Connect to a WebSocket entrypoint and observe events:
22
22
  ```typescript
23
23
  import { useWs } from '@owlmeans/client-socket'
24
24
  import { MessageType } from '@owlmeans/socket'
25
+ import { useContext } from '@owlmeans/web-client'
26
+ import { appEntrypoints } from 'my-app-common'
25
27
 
26
28
  function ThinkingPanel({ storyId }: { storyId: string }) {
27
- const conn = useWs('story-thinking', { params: { id: storyId } })
29
+ const context = useContext()
30
+ const conn = useWs(context.entrypoint(appEntrypoints.api.storyThinking), { params: { id: storyId } })
28
31
 
29
32
  useEffect(() => {
30
33
  if (!conn) return
@@ -40,9 +43,9 @@ Direct connection (non-hook):
40
43
 
41
44
  ```typescript
42
45
  import { ws } from '@owlmeans/client-socket'
43
- import type { ClientEntrypoint } from '@owlmeans/client-entrypoint'
46
+ import { appEntrypoints } from 'my-app-common'
44
47
 
45
- const wsEntrypoint = context.entrypoint<ClientEntrypoint<string>>('story-thinking')
48
+ const wsEntrypoint = context.entrypoint(appEntrypoints.api.storyThinking)
46
49
  const connection = await ws(wsEntrypoint, { params: { id: storyId } })
47
50
  ```
48
51
 
@@ -60,7 +63,7 @@ React hook version of `ws()`. Returns `null` while connecting. Manages connectio
60
63
 
61
64
  - [`@owlmeans/socket`](../socket) — `Connection` interface with `notify`, `observe`, `call` methods
62
65
  - [`@owlmeans/server-socket`](../server-socket) — server-side connection handler
63
- - [`@owlmeans/client-entrypoint`](../client-entrypoint) — `ClientEntrypoint` passed to `ws()`
66
+ - [`@owlmeans/client-entrypoint`](../client-entrypoint) — protocol bindings passed to `ws()`
64
67
 
65
68
  <!-- owlmeans:agent-guidance:start -->
66
69
  ## Agent guidance
@@ -70,7 +73,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
70
73
  your project's skill store (`.agents/skills/`):
71
74
 
72
75
  ```sh
73
- npx @owlmeans/agent-skills@^0.1.18-rc.14
76
+ npx @owlmeans/agent-skills@^0.1.18-rc.16
74
77
  ```
75
78
 
76
79
  The embedded files are version-matched to this package release. Do not edit them
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "package": "@owlmeans/client-socket",
4
- "version": "0.1.18-rc.16",
5
- "generatedAt": "2026-09-10T23:12:07.508Z",
4
+ "version": "0.1.18-rc.18",
5
+ "generatedAt": "2026-09-12T12:32:46.370Z",
6
6
  "canonicalRepo": "https://github.com/owlmeans/common",
7
7
  "entries": [
8
8
  {
@@ -8,7 +8,7 @@ user-invocable: false
8
8
  # @owlmeans/client-socket
9
9
 
10
10
  **Layer:** Client
11
- **Install:** `"@owlmeans/client-socket": "^0.1.18-rc.16"` in `dependencies`
11
+ **Install:** `"@owlmeans/client-socket": "^0.1.18-rc.18"` in `dependencies`
12
12
 
13
13
  The browser carrier for `@owlmeans/socket`. It supplies the four members the connection model
14
14
  leaves abstract — `send`, `close`, `prepare`, `authenticate` — and hands back a plain `Connection`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/client-socket",
3
- "version": "0.1.18-rc.16",
3
+ "version": "0.1.18-rc.18",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -30,14 +30,14 @@
30
30
  "typescript": "^7.0.2"
31
31
  },
32
32
  "dependencies": {
33
- "@owlmeans/auth": "^0.1.18-rc.11",
34
- "@owlmeans/basic-envelope": "^0.1.18-rc.14",
35
- "@owlmeans/client": "^0.1.18-rc.18",
36
- "@owlmeans/client-context": "^0.1.18-rc.15",
37
- "@owlmeans/client-entrypoint": "^0.1.18-rc.15",
38
- "@owlmeans/context": "^0.1.18-rc.10",
39
- "@owlmeans/entrypoint": "^0.1.18-rc.13",
40
- "@owlmeans/socket": "^0.1.18-rc.11"
33
+ "@owlmeans/auth": "^0.1.18-rc.13",
34
+ "@owlmeans/basic-envelope": "^0.1.18-rc.16",
35
+ "@owlmeans/client": "^0.1.18-rc.20",
36
+ "@owlmeans/client-context": "^0.1.18-rc.17",
37
+ "@owlmeans/client-entrypoint": "^0.1.18-rc.17",
38
+ "@owlmeans/context": "^0.1.18-rc.12",
39
+ "@owlmeans/entrypoint": "^0.1.18-rc.15",
40
+ "@owlmeans/socket": "^0.1.18-rc.13"
41
41
  },
42
42
  "publishConfig": {
43
43
  "access": "public"