@abraca/dabra 1.0.7 → 1.0.8

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.
@@ -9496,7 +9496,7 @@ var AbracadabraWebRTC = class AbracadabraWebRTC extends EventEmitter {
9496
9496
  */
9497
9497
  static fromProvider(provider, options) {
9498
9498
  const config = provider.configuration;
9499
- const httpUrl = (config.websocketProvider?.url ?? config.url ?? "").replace(/^wss:/, "https:").replace(/^ws:/, "http:");
9499
+ const httpUrl = (config.websocketProvider?.url ?? config.url ?? "").replace(/^wss:/, "https:").replace(/^ws:/, "http:").replace(/\/ws\/?$/, "");
9500
9500
  return new AbracadabraWebRTC({
9501
9501
  docId: config.name,
9502
9502
  url: httpUrl,