@fishjam-cloud/webrtc-client 0.28.3 → 0.30.0-rc.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/dist/index.mjs +2 -4
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -4799,10 +4799,8 @@ var WebRTCEndpoint = class extends EventEmitter3 {
4799
4799
  this.localTrackManager = new LocalTrackManager(this.local, sendEvent);
4800
4800
  this.commandsQueue = new CommandsQueue(this.localTrackManager);
4801
4801
  const createDataChannelFn = (label, init) => {
4802
- if (!this.connectionManager) {
4803
- this.connectionManager = new ConnectionManager(this.proposedIceServers);
4804
- }
4805
- return this.connectionManager.createDataChannel(label, init);
4802
+ const connectionManager = this.connectionManager ?? this.createNewConnection();
4803
+ return connectionManager.createDataChannel(label, init);
4806
4804
  };
4807
4805
  const triggerRenegotiationFn = () => {
4808
4806
  this.sendMediaEvent({ renegotiateTracks: MediaEvent_RenegotiateTracks.create() });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fishjam-cloud/webrtc-client",
3
- "version": "0.28.3",
3
+ "version": "0.30.0-rc.0",
4
4
  "description": "Typescript client library for ExWebRTC/WebRTC endpoint in Membrane RTC Engine",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Fishjam Team",