@caboodle-tech/node-simple-server 4.0.0 → 4.1.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.
package/bin/nss.js CHANGED
@@ -43,7 +43,7 @@ class NodeSimpleServer {
43
43
  map: {}
44
44
  };
45
45
 
46
- #VERSION = '4.0.0';
46
+ #VERSION = '4.1.0';
47
47
 
48
48
  #watching = [];
49
49
 
@@ -146,8 +146,8 @@
146
146
  }
147
147
 
148
148
  // Socket specific variables.
149
- const protocol = window.location.protocol === 'http:' ? 'ws://' : 'wss://';
150
- const address = `${protocol}{{HOST_ADDRESS}}${pathname}/ws?id=${pageId}`;
149
+ const protocol = window.location.protocol === "http:" ? "ws://" : "wss://";
150
+ const address = protocol + window.location.host + window.location.pathname + "/ws?id=" + pageId;
151
151
  const socket = new WebSocket(address);
152
152
 
153
153
  // Respond to messages the socket receives.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caboodle-tech/node-simple-server",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "Node Simple Server (NSS): A small but effective node based server for development sites, customizable live reloading, and websocket support built-in.",
5
5
  "main": "bin/nss.js",
6
6
  "scripts": {