@api.global/typedsocket 5.1.2 → 6.0.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/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/index.d.ts +7 -0
- package/dist_ts/index.js +5 -1
- package/dist_ts/nativebytes.codec.d.ts +8 -0
- package/dist_ts/nativebytes.codec.js +328 -0
- package/dist_ts/nativebytes.constants.d.ts +59 -0
- package/dist_ts/nativebytes.constants.js +58 -0
- package/dist_ts/nativebytes.errors.d.ts +13 -0
- package/dist_ts/nativebytes.errors.js +26 -0
- package/dist_ts/nativebytes.manager.d.ts +322 -0
- package/dist_ts/nativebytes.manager.js +2308 -0
- package/dist_ts/nativebytes.types.d.ts +187 -0
- package/dist_ts/nativebytes.types.js +2 -0
- package/dist_ts/typedsocket.classes.typedsocket.d.ts +120 -11
- package/dist_ts/typedsocket.classes.typedsocket.js +1093 -160
- package/dist_ts/typedsocket.plugins.d.ts +3 -2
- package/dist_ts/typedsocket.plugins.js +3 -2
- package/dist_ts/typedsocket.tags.d.ts +105 -0
- package/dist_ts/typedsocket.tags.js +521 -0
- package/{license → license.md} +2 -2
- package/package.json +22 -18
- package/readme.hints.md +27 -11
- package/readme.md +461 -46
- package/npmextra.json +0 -35
- package/ts/00_commitinfo_data.ts +0 -8
- package/ts/index.ts +0 -1
- package/ts/typedsocket.classes.typedsocket.ts +0 -1156
- package/ts/typedsocket.plugins.ts +0 -18
package/readme.hints.md
CHANGED
|
@@ -1,21 +1,37 @@
|
|
|
1
1
|
# TypedSocket Hints
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## TypedSocket 6 Integration
|
|
4
4
|
|
|
5
|
-
TypedSocket
|
|
5
|
+
TypedSocket 6 requires SmartServe 4.2.1 and TypedRequest 5.2.1. Compose the
|
|
6
|
+
TypedSocket server before constructing SmartServe so `webSocketTransportOwner`
|
|
7
|
+
is selected for the physical peer at upgrade time.
|
|
6
8
|
|
|
7
|
-
###
|
|
9
|
+
### Authority Rules
|
|
8
10
|
|
|
9
|
-
1. **
|
|
11
|
+
1. **Peer identity**: Incoming server handlers call
|
|
12
|
+
`getServerConnectionForRequest(typedTools)` to obtain the exact typed transport
|
|
13
|
+
connection without assertions. Tag validators receive opaque `connectionId`
|
|
14
|
+
and `routingSurfaceId` identities instead of mutable peer/router objects.
|
|
10
15
|
|
|
11
|
-
2. **
|
|
16
|
+
2. **Tags**: Client tags are default-deny exact rules. Authentication, roles,
|
|
17
|
+
registration, and reserved names are assigned only with `setServerTag()`.
|
|
12
18
|
|
|
13
|
-
3. **
|
|
19
|
+
3. **Bytes**: Generic legacy VirtualStreams are always denied. Exact native-byte
|
|
20
|
+
facades require fixed manifests, principal/revision authority, and durable
|
|
21
|
+
confirmation.
|
|
14
22
|
|
|
15
|
-
4. **
|
|
23
|
+
4. **Lifecycle**: Client text work, native frames, callbacks, pending requests,
|
|
24
|
+
tag mutations, and server request interests have fixed resource ceilings and
|
|
25
|
+
generation fencing. SmartServe settlements authorize only the exact frame
|
|
26
|
+
object returned by `pullBinaryFrame()`.
|
|
16
27
|
|
|
17
|
-
|
|
28
|
+
5. **Restoration**: `restoreConnection(context)` runs after capability
|
|
29
|
+
negotiation and before desired tags or `connected`. Use
|
|
30
|
+
`context.createTypedRequest()` for authenticated restoration RPCs; it inherits
|
|
31
|
+
the restoration deadline and abort signal and becomes invalid afterward.
|
|
18
32
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
33
|
+
### Release Artifact
|
|
34
|
+
|
|
35
|
+
Only compiled `dist_ts` JavaScript/declarations, package metadata, documentation,
|
|
36
|
+
and the license are published. `pnpm run verify:package` performs the deterministic
|
|
37
|
+
two-pack entry, hash, metadata, and smoke-import gate.
|