@xtr-dev/rondevu-client 0.7.10 → 0.7.11

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
@@ -411,7 +411,8 @@ const offers = await client.offers.create([{
411
411
  sdp: 'v=0...', // Your WebRTC offer SDP
412
412
  topics: ['movie-xyz', 'hd-content'],
413
413
  ttl: 300000, // 5 minutes
414
- secret: 'my-secret-password' // Optional: protect offer (max 128 chars)
414
+ secret: 'my-secret-password', // Optional: protect offer (max 128 chars)
415
+ info: 'Looking for peers in EU region' // Optional: public info (max 128 chars)
415
416
  }]);
416
417
 
417
418
  // Discover peers by topic
@@ -489,7 +490,8 @@ const offers = await client.offers.create([
489
490
  sdp: 'v=0...',
490
491
  topics: ['topic-1', 'topic-2'],
491
492
  ttl: 300000, // optional, default 5 minutes
492
- secret: 'my-secret-password' // optional, max 128 chars
493
+ secret: 'my-secret-password', // optional, max 128 chars
494
+ info: 'Looking for peers in EU region' // optional, public info, max 128 chars
493
495
  }
494
496
  ]);
495
497
  ```
package/dist/offers.d.ts CHANGED
@@ -4,6 +4,7 @@ export interface CreateOfferRequest {
4
4
  topics: string[];
5
5
  ttl?: number;
6
6
  secret?: string;
7
+ info?: string;
7
8
  }
8
9
  export interface Offer {
9
10
  id: string;
@@ -15,6 +16,7 @@ export interface Offer {
15
16
  lastSeen: number;
16
17
  secret?: string;
17
18
  hasSecret?: boolean;
19
+ info?: string;
18
20
  answererPeerId?: string;
19
21
  answerSdp?: string;
20
22
  answeredAt?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xtr-dev/rondevu-client",
3
- "version": "0.7.10",
3
+ "version": "0.7.11",
4
4
  "description": "TypeScript client for Rondevu topic-based peer discovery and signaling server",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",