wse-client 2.1.1 → 2.2.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.
Files changed (2) hide show
  1. package/README.md +9 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -175,6 +175,13 @@ token = rust_jwt_encode(
175
175
  | `presence_enabled` | False | Enable per-topic presence tracking |
176
176
  | `presence_max_data_size` | 4096 | Max bytes for a user's presence metadata |
177
177
  | `presence_max_members` | 0 | Max tracked members per topic (0 = unlimited) |
178
+ | `max_outbound_queue_bytes` | 16777216 | Per-connection outbound buffer limit (bytes, default 16 MB). Messages dropped when exceeded |
179
+ | `jwt_cookie_name` | "access_token" | Cookie name for JWT token extraction |
180
+ | `rate_limit_capacity` | 100000.0 | Token bucket capacity per connection |
181
+ | `rate_limit_refill` | 10000.0 | Token bucket refill rate per second |
182
+ | `max_message_size` | 1048576 | Maximum WebSocket frame size in bytes (default 1 MB) |
183
+ | `ping_interval` | 25 | Server-initiated ping interval in seconds |
184
+ | `idle_timeout` | 60 | Force-close connections idle for this many seconds |
178
185
 
179
186
  ---
180
187
 
@@ -499,10 +506,10 @@ Benchmarked on AMD EPYC 7502P (32 cores / 64 threads, 128 GB RAM), Ubuntu 24.04.
499
506
 
500
507
  | Mode | Peak Throughput | Connections | Message Loss |
501
508
  |------|----------------|-------------|--------------|
502
- | Standalone (fan-out) | 5.0M deliveries/s | 500K | 0% |
509
+ | Standalone (fan-out) | 4.7M deliveries/s | 100K | 0% |
503
510
  | Standalone (inbound JSON) | 14.7M msg/s | 500K | 0% |
504
511
  | Standalone (inbound msgpack) | 30M msg/s | 500K | 0% |
505
- | Cluster (2 nodes) | 9.5M deliveries/s | 20K per node | 0% |
512
+ | Cluster (2 nodes, 50/50) | 6.6M deliveries/s | 500 per node | 0% |
506
513
 
507
514
  Sub-millisecond latency. Median 0.38ms with JWT authentication. Connection handshake: 0.53ms median (Rust JWT path).
508
515
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wse-client",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "description": "WSE (WebSocket Engine) React client. Type-safe hooks, auto-reconnect, offline queue, E2E encryption.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",