@brainstack/bridge-server
Advanced tools
Comparing version 2.0.8 to 2.0.9
@@ -33,4 +33,5 @@ "use strict"; | ||
constructor(options) { | ||
this.port = PORT; | ||
this.host = HOST; | ||
var _a, _b; | ||
this.port = (_a = options === null || options === void 0 ? void 0 : options.port) !== null && _a !== void 0 ? _a : PORT; | ||
this.host = (_b = options === null || options === void 0 ? void 0 : options.host) !== null && _b !== void 0 ? _b : HOST; | ||
this.options = options; | ||
@@ -37,0 +38,0 @@ this.logger = options.logger || (0, log_1.createLogger)(5); |
{ | ||
"name": "@brainstack/bridge-server", | ||
"version": "2.0.8", | ||
"version": "2.0.9", | ||
"description": "Brainstack Bridge Server", | ||
@@ -31,7 +31,7 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@brainstack/hub": "^1.1.57", | ||
"@brainstack/log": "^1.1.60", | ||
"@brainstack/hub": "^1.1.58", | ||
"@brainstack/log": "^1.1.61", | ||
"ws": "^8.13.0" | ||
}, | ||
"gitHead": "d50064fcba0d7e47d656b9eeb8654310caa11095" | ||
"gitHead": "df0a07d12cf4d966932a99ca8d3e08d556e367a1" | ||
} |
@@ -18,4 +18,4 @@ import { createLogger, Logger } from '@brainstack/log'; | ||
constructor(options: BridgeServerOptions) { | ||
this.port = PORT; | ||
this.host = HOST; | ||
this.port = options?.port ?? PORT; | ||
this.host = options?.host ?? HOST; | ||
this.options = options; | ||
@@ -22,0 +22,0 @@ this.logger = options.logger || createLogger(5); |
138886
440
Updated@brainstack/hub@^1.1.58
Updated@brainstack/log@^1.1.61