@avatarsd-llc/libtracer-ws 0.16.1 → 0.18.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.
@@ -2,13 +2,13 @@
2
2
  * @brief TransportWs — the dial-out WebSocket transport for libtracer (#54,
3
3
  * ADR-0029).
4
4
  *
5
- * It mirrors the seam of the C++ `tr::net::transport_ws_client`
5
+ * It mirrors the seam of the C++ `tr::net::ws_client_transport_t`
6
6
  * (core/src/transport_ws.cpp): a `send(bytes)` that puts a complete libtracer
7
7
  * TLV onto the wire as ONE binary WebSocket frame, plus a receiver registration
8
8
  * for inbound frames. A libtracer TLV is carried as a single RFC 6455 BINARY
9
9
  * frame (opcode 0x2): the C++ transport sends the whole TLV as one masked client
10
10
  * frame and reassembles inbound frames the same way, so this transport stays
11
- * wire-compatible with the C++ `transport_ws_server`.
11
+ * wire-compatible with the C++ `ws_server_transport_t`.
12
12
  *
13
13
  * Framing is delegated to the runtime's WebSocket (native in the browser and in
14
14
  * Node >= 22; the `ws` package in older Node). That implementation performs the
@@ -67,7 +67,7 @@ export declare class TransportWs {
67
67
  /**
68
68
  * @brief Register (or clear) the inbound-frame receiver.
69
69
  *
70
- * Mirrors the C++ `transport_ws_client::set_receiver`. The callback is
70
+ * Mirrors the C++ `ws_client_transport_t::set_receiver`. The callback is
71
71
  * invoked once per inbound BINARY frame with that frame's payload bytes.
72
72
  */
73
73
  onFrame(receiver: FrameReceiver | null): void;
package/dist/transport.js CHANGED
@@ -44,7 +44,7 @@ export class TransportWs {
44
44
  /**
45
45
  * @brief Register (or clear) the inbound-frame receiver.
46
46
  *
47
- * Mirrors the C++ `transport_ws_client::set_receiver`. The callback is
47
+ * Mirrors the C++ `ws_client_transport_t::set_receiver`. The callback is
48
48
  * invoked once per inbound BINARY frame with that frame's payload bytes.
49
49
  */
50
50
  onFrame(receiver) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avatarsd-llc/libtracer-ws",
3
- "version": "0.16.1",
3
+ "version": "0.18.0",
4
4
  "description": "WebSocket transport for libtracer (ADR-0029) — an RFC 6455 frame codec plus a TransportWs client that carries libtracer TLV frames over WebSocket, wire-compatible with the C++ tr::net::transport_ws. The core (@avatarsd-llc/libtracer) is a peerDependency. See docs/adr/0033-npm-subpackage-monorepo.md.",
5
5
  "author": "avatarsd LLC",
6
6
  "license": "Apache-2.0",
@@ -37,7 +37,7 @@
37
37
  "access": "public"
38
38
  },
39
39
  "peerDependencies": {
40
- "@avatarsd-llc/libtracer": ">=0.16.1 <0.17.0"
40
+ "@avatarsd-llc/libtracer": ">=0.18.0 <0.19.0"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "tsc",