Skip to content

Commit

Permalink
socket-mode: do not throw exception when calling disconnect() and alr…
Browse files Browse the repository at this point in the history
…eady disconnected; do not raise slack_event in case of type:disconnect messages (#1762) also add integration tests to this maintenance branch
  • Loading branch information
Filip Maj committed Apr 17, 2024
1 parent bcffe5d commit 38ef513
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/socket-mode/apptest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const { SocketModeClient, LogLevel } = require('./dist');
const client = new SocketModeClient({ appToken: process.env.SLACK_APP_TOKEN, logLevel: LogLevel.DEBUG });

client.on('message', async (evt) => {
await evt.ack();
console.log('*MESSAGE EVENT*', evt);
});
(async () => {
await client.start();
})();

0 comments on commit 38ef513

Please sign in to comment.