@slack/socket-mode
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -44,7 +44,8 @@ "use strict"; | ||
.do(() => { | ||
// TODO: change this to webClient.apps.connections.open() | ||
return this.webClient.apiCall('apps.connections.open').then((result) => { | ||
return this.webClient.apps.connections.open().then((result) => { | ||
return result; | ||
}).catch((error) => { | ||
this.logger.error(error); | ||
// throw error; | ||
return Promise.reject(error); | ||
}); | ||
@@ -56,3 +57,2 @@ }) | ||
const error = context.error; | ||
this.logger.info('here'); | ||
this.logger.info(`unable to Socket Mode start: ${error.message}`); | ||
@@ -134,7 +134,8 @@ // Observe this event when the error which causes reconnecting or disconnecting is meaningful | ||
.do(() => { | ||
// TODO: change this to webClient.apps.connections.open() | ||
return this.webClient.apiCall('apps.connections.open').then((result) => { | ||
return this.webClient.apps.connections.open().then((result) => { | ||
return result; | ||
}).catch((error) => { | ||
this.logger.error(error); | ||
// throw error; | ||
return Promise.reject(error); | ||
}); | ||
@@ -146,3 +147,2 @@ }) | ||
const error = context.error; | ||
this.logger.info('here'); | ||
this.logger.info(`unable to Socket Mode start: ${error.message}`); | ||
@@ -363,3 +363,6 @@ // Observe this event when the error which causes reconnecting or disconnecting is meaningful | ||
// initialize the websocket | ||
const options = Object.assign(Object.assign({ perMessageDeflate: false }, this.clientOptions.tls), this.clientOptions.agent); | ||
const options = { | ||
perMessageDeflate: false, | ||
agent: this.clientOptions.agent, | ||
}; | ||
let websocket; | ||
@@ -366,0 +369,0 @@ if (this.websocket === undefined) { |
{ | ||
"name": "@slack/socket-mode", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Official library for using the Slack Platform's Socket Mode API", | ||
@@ -47,4 +47,4 @@ "author": "Slack Technologies, Inc.", | ||
"dependencies": { | ||
"@slack/logger": "^2.0.0", | ||
"@slack/web-api": "^5.14.0", | ||
"@slack/logger": "^3.0.0", | ||
"@slack/web-api": "^6.0.0", | ||
"@types/node": ">=12.0.0", | ||
@@ -51,0 +51,0 @@ "@types/p-queue": "^2.3.2", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
789
68162
+ Added@slack/logger@3.0.0(transitive)
+ Added@slack/types@2.14.0(transitive)
+ Added@slack/web-api@6.13.0(transitive)
+ Addedaxios@1.7.9(transitive)
+ Addedform-data@4.0.2(transitive)
+ Addedis-electron@2.2.2(transitive)
+ Addedproxy-from-env@1.1.0(transitive)
- Removed@slack/logger@2.0.0(transitive)
- Removed@slack/types@1.10.0(transitive)
- Removed@slack/web-api@5.15.0(transitive)
- Removedaxios@0.21.4(transitive)
Updated@slack/logger@^3.0.0
Updated@slack/web-api@^6.0.0