@soundworks/core 5.1.1 → 5.1.2

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": "@soundworks/core",
3
- "version": "5.1.1",
3
+ "version": "5.1.2",
4
4
  "description": "Open-source creative coding framework for distributed applications based on Web technologies",
5
5
  "collaborators": [
6
6
  "Benjamin Matuszewski",
@@ -61,7 +61,7 @@ class ClientSocket {
61
61
  path = `${this.#config.env.baseUrl}/${path}`;
62
62
  }
63
63
 
64
- const port = this.#config.env.port;
64
+ let port = this.#config.env.port;
65
65
  let protocol = this.#config.env.useHttps ? 'wss:' : 'ws:';
66
66
  let serverAddress;
67
67
  let webSocketOptions;
@@ -75,6 +75,7 @@ class ClientSocket {
75
75
  // stuff, there are too much weird edge cases to handle
76
76
  if (this.#config.env.useHttps === false && window.location.protocol === 'https:') {
77
77
  protocol = 'wss:';
78
+ port = 443;
78
79
  }
79
80
 
80
81
  if (this.#config.env.serverAddress === '') {
@@ -1,2 +1,2 @@
1
1
  // [WARNING] This file is generated, do not edit
2
- export default '5.1.1';
2
+ export default '5.1.2';
@@ -1,2 +1,2 @@
1
- declare const _default: "5.1.1";
1
+ declare const _default: "5.1.2";
2
2
  export default _default;