@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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abraca/dabra",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "abracadabra provider",
5
5
  "keywords": [
6
6
  "abracadabra",
@@ -102,7 +102,8 @@ export class AbracadabraWebRTC extends EventEmitter {
102
102
  "";
103
103
  const httpUrl = wsUrl
104
104
  .replace(/^wss:/, "https:")
105
- .replace(/^ws:/, "http:");
105
+ .replace(/^ws:/, "http:")
106
+ .replace(/\/ws\/?$/, "");
106
107
 
107
108
  return new AbracadabraWebRTC({
108
109
  docId: config.name,