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.
- package/antietcd.js +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.
|
|
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.
|
|
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);
|