@abraca/dabra 1.0.7 → 1.0.9

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.
@@ -9444,7 +9444,7 @@ var AbracadabraWebRTC = class AbracadabraWebRTC extends EventEmitter {
9444
9444
  */
9445
9445
  static fromProvider(provider, options) {
9446
9446
  const config = provider.configuration;
9447
- const httpUrl = (config.websocketProvider?.url ?? config.url ?? "").replace(/^wss:/, "https:").replace(/^ws:/, "http:");
9447
+ const httpUrl = (config.websocketProvider?.url ?? config.url ?? "").replace(/^wss:/, "https:").replace(/^ws:/, "http:").replace(/\/ws\/?$/, "");
9448
9448
  return new AbracadabraWebRTC({
9449
9449
  docId: config.name,
9450
9450
  url: httpUrl,