@xtr-dev/rondevu-client 0.21.1 → 0.21.3

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.
@@ -23,8 +23,8 @@ export const ICE_SERVER_PRESETS = {
23
23
  'turn:relay.ronde.vu:3478?transport=tcp',
24
24
  'turn:relay.ronde.vu:3478?transport=udp',
25
25
  ],
26
- username: 'rondevu',
27
- credential: 'rondevu-public-turn',
26
+ username: 'webrtcuser',
27
+ credential: 'changeme',
28
28
  },
29
29
  ],
30
30
  },
@@ -37,8 +37,8 @@ export const ICE_SERVER_PRESETS = {
37
37
  'turn:relay.ronde.vu:3478?transport=tcp',
38
38
  'turn:relay.ronde.vu:3478?transport=udp',
39
39
  ],
40
- username: 'rondevu',
41
- credential: 'rondevu-public-turn',
40
+ username: 'webrtcuser',
41
+ credential: 'changeme',
42
42
  },
43
43
  ],
44
44
  iceTransportPolicy: 'relay', // Force relay mode - hides client IPs
@@ -51,8 +51,8 @@ export const ICE_SERVER_PRESETS = {
51
51
  'turn:57.129.61.67:3478?transport=tcp',
52
52
  'turn:57.129.61.67:3478?transport=udp',
53
53
  ],
54
- username: 'rondevu',
55
- credential: 'rondevu-public-turn',
54
+ username: 'webrtcuser',
55
+ credential: 'changeme',
56
56
  },
57
57
  ],
58
58
  },
@@ -64,8 +64,8 @@ export const ICE_SERVER_PRESETS = {
64
64
  'turn:57.129.61.67:3478?transport=tcp',
65
65
  'turn:57.129.61.67:3478?transport=udp',
66
66
  ],
67
- username: 'rondevu',
68
- credential: 'rondevu-public-turn',
67
+ username: 'webrtcuser',
68
+ credential: 'changeme',
69
69
  },
70
70
  ],
71
71
  iceTransportPolicy: 'relay',
@@ -8,6 +8,7 @@ import { EventEmitter } from 'eventemitter3';
8
8
  import { RondevuAPI } from '../api/client.js';
9
9
  import { AnswererConnection } from '../connections/answerer.js';
10
10
  import { ConnectionConfig } from '../connections/config.js';
11
+ import { WebRTCAdapter } from '../webrtc/adapter.js';
11
12
  /**
12
13
  * Simplified peer state (maps from ConnectionState)
13
14
  */
@@ -50,6 +51,7 @@ export interface PeerInternalOptions extends PeerOptions {
50
51
  api: RondevuAPI;
51
52
  iceServers: RTCIceServer[];
52
53
  iceTransportPolicy?: RTCIceTransportPolicy;
54
+ webrtcAdapter?: WebRTCAdapter;
53
55
  debug?: boolean;
54
56
  }
55
57
  /**
@@ -87,6 +89,7 @@ export declare class Peer extends EventEmitter<PeerEventMap> {
87
89
  private targetUsername?;
88
90
  private iceServers;
89
91
  private iceTransportPolicy?;
92
+ private webrtcAdapter?;
90
93
  private connectionConfig?;
91
94
  private debugEnabled;
92
95
  private _state;
package/dist/core/peer.js CHANGED
@@ -47,6 +47,7 @@ export class Peer extends EventEmitter {
47
47
  this.targetUsername = options.username;
48
48
  this.iceServers = options.iceServers;
49
49
  this.iceTransportPolicy = options.iceTransportPolicy;
50
+ this.webrtcAdapter = options.webrtcAdapter;
50
51
  this.connectionConfig = options.config;
51
52
  this.debugEnabled = options.debug || false;
52
53
  }
@@ -88,6 +89,7 @@ export class Peer extends EventEmitter {
88
89
  iceServers: this.iceServers,
89
90
  iceTransportPolicy: this.iceTransportPolicy,
90
91
  },
92
+ webrtcAdapter: this.webrtcAdapter,
91
93
  config: {
92
94
  ...this.connectionConfig,
93
95
  debug: this.debugEnabled,
@@ -365,6 +365,7 @@ export class Rondevu extends EventEmitter {
365
365
  api: this.api,
366
366
  iceServers: this.iceServers,
367
367
  iceTransportPolicy: this.iceTransportPolicy,
368
+ webrtcAdapter: this.webrtcAdapter,
368
369
  debug: this.debugEnabled,
369
370
  });
370
371
  await peer.initialize();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xtr-dev/rondevu-client",
3
- "version": "0.21.1",
3
+ "version": "0.21.3",
4
4
  "description": "TypeScript client for Rondevu with durable WebRTC connections, automatic reconnection, and message queuing",
5
5
  "type": "module",
6
6
  "main": "dist/core/index.js",