nxt-aws-client
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -11,2 +11,3 @@ "use strict"; | ||
this.id = 0; | ||
this.options.logger.debug({ url: config.socket.url }, 'Connecting to WS server.'); | ||
this.client = new WebSocket(config.socket.url, { | ||
@@ -19,3 +20,3 @@ headers: { | ||
this.client.on('close', () => this.options.logger.debug({}, 'Socket closed.')); | ||
this.client.on('unexpected-response', (req, res) => this.options.logger.debug({ code: res.statusCode }, 'Unexpected socket response.')); | ||
this.client.on('unexpected-response', (req, res) => this.options.logger.debug({ code: res.statusCode, body: res.read(), status: res.statusMessage }, 'Unexpected socket response.')); | ||
this.requestsBus = new events_1.EventEmitter(); | ||
@@ -22,0 +23,0 @@ this.requestsBus.setMaxListeners(0); |
{ | ||
"name": "nxt-aws-client", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"main": "./dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "./dist/index.d.ts", |
21392
22
726