antietcd 1.0.8 → 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.
Files changed (2) hide show
  1. package/antietcd.js +2 -2
  2. package/package.json +1 -1
package/antietcd.js CHANGED
@@ -17,7 +17,7 @@ const AntiPersistence = require('./antipersistence.js');
17
17
  const AntiCluster = require('./anticluster.js');
18
18
  const { runCallbacks, RequestError } = require('./common.js');
19
19
 
20
- const VERSION = '1.0.8';
20
+ const VERSION = '1.0.9';
21
21
 
22
22
  class AntiEtcd extends EventEmitter
23
23
  {
@@ -74,7 +74,7 @@ class AntiEtcd extends EventEmitter
74
74
  {
75
75
  this.server = http.createServer((req, res) => this._handleRequest(req, res));
76
76
  }
77
- this.wss = new ws.WebSocketServer({ server: this.server });
77
+ this.wss = new ws.Server({ server: this.server });
78
78
  // eslint-disable-next-line no-unused-vars
79
79
  this.wss.on('connection', (conn, req) => this._startWebsocket(conn, null));
80
80
  this.server.listen(this.cfg.port || 2379, this.cfg.ip || undefined);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antietcd",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Simplistic etcd replacement based on TinyRaft",
5
5
  "main": "antietcd.js",
6
6
  "scripts": {