Comparing version 3.1.0 to 3.1.1
@@ -180,3 +180,4 @@ 'use strict'; | ||
const transport = new HttpTransport(this, req, res); | ||
if (!req.url.startsWith('/api')) { | ||
const api = req.url.startsWith('/api'); | ||
if (!api && !(balancer && req.url === '/')) { | ||
if (application.static.constructor.name !== 'Static') return; | ||
@@ -199,2 +200,3 @@ return void application.static.serve(req.url, transport); | ||
if (balancer) return; | ||
this.wsServer = new ws.Server({ server: this.httpServer }); | ||
@@ -223,3 +225,4 @@ | ||
this.wsServer.on('error', (err) => { | ||
const server = this.wsServer || this.httpServer; | ||
server.on('error', (err) => { | ||
if (err.code !== 'EADDRINUSE') return; | ||
@@ -226,0 +229,0 @@ this.retry--; |
{ | ||
"name": "metacom", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"author": "Timur Shemsedinov <timur.shemsedinov@gmail.com>", | ||
@@ -56,3 +56,3 @@ "description": "Communication protocol for Metarhia stack with rpc, events, binary streams, memory and db access", | ||
"dependencies": { | ||
"metautil": "^3.13.0", | ||
"metautil": "^3.14.0", | ||
"ws": "^8.14.0" | ||
@@ -59,0 +59,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55404
1635
Updatedmetautil@^3.14.0