You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Web API | Send data to or query data from Slack using any of [over 200 methods](https://api.slack.com/methods). |[`@slack/web-api`](https://slack.dev/node-slack-sdk/web-api)|
17
-
| OAuth | Set up the authentication flow using V2 OAuth for Slack apps as well as V1 OAuth for classic Slack apps. |[`@slack/oauth`](https://slack.dev/node-slack-sdk/oauth)|
18
-
| Incoming Webhooks | Send notifications to a single channel which the user picks on installation. |[`@slack/webhook`](https://slack.dev/node-slack-sdk/webhook)|
19
-
| Socket Mode | Listen for incoming messages and a limited set of events happening in Slack, using WebSocket. |[`@slack/socket-mode`](https://slack.dev/node-slack-sdk/socket-mode)|
16
+
| Web API | Send data to or query data from Slack using any of [over 200 methods](https://api.slack.com/methods). |[`@slack/web-api`](https://tools.slack.dev/node-slack-sdk/web-api)|
17
+
| OAuth | Set up the authentication flow using V2 OAuth for Slack apps as well as V1 OAuth for classic Slack apps. |[`@slack/oauth`](https://tools.slack.dev/node-slack-sdk/oauth)|
18
+
| Incoming Webhooks | Send notifications to a single channel which the user picks on installation. |[`@slack/webhook`](https://tools.slack.dev/node-slack-sdk/webhook)|
19
+
| Socket Mode | Listen for incoming messages and a limited set of events happening in Slack, using WebSocket. |[`@slack/socket-mode`](https://tools.slack.dev/node-slack-sdk/socket-mode)|
Copy file name to clipboardExpand all lines: docs/content/packages/rtm-api.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ app to stay connected to the Slack platform over a persistent Websocket connecti
10
10
11
11
:::danger
12
12
13
-
The RTM API isn't available for modern granular-permissions apps, and you can no longer create new legacy apps. We recommend using [Bolt for JavaScript](https://slack.dev/bolt-js). If you have an existing RTM app, do not update its scopes as it will be updated to a granular-permissions app and stop working with the RTM API.
13
+
The RTM API isn't available for modern granular-permissions apps, and you can no longer create new legacy apps. We recommend using [Bolt for JavaScript](https://tools.slack.dev/bolt-js). If you have an existing RTM app, do not update its scopes as it will be updated to a granular-permissions app and stop working with the RTM API.
When your app has multiple interactive events or slash commands, you will need to include your own routing logic. This is a good time to consider using Slack's Bolt framework, which provides an easier way to register listeners for events and user actions. You can learn more in [Bolt's Socket Mode documentation](https://slack.dev/bolt-js/concepts#socket-mode).
61
+
When your app has multiple interactive events or slash commands, you will need to include your own routing logic. This is a good time to consider using Slack's Bolt framework, which provides an easier way to register listeners for events and user actions. You can learn more in [Bolt's Socket Mode documentation](https://tools.slack.dev/bolt-js/concepts#socket-mode).
Copy file name to clipboardExpand all lines: docs/content/tutorials/local-development.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,16 +9,16 @@ This tutorial is meant to guide developers through setting up and configuring a
9
9
Feel free to skip around to the specific sections relevant to you — we won't mind 🙂
10
10
11
11
## Create an app
12
-
Head over to [Create an app](https://slack.dev/bolt-js/getting-started#create-an-app) within our Getting started with JavaScript for Bolt page for instructions on how to create a Slack app on [api.slack.com/apps](https://api.slack.com/apps).
12
+
Head over to [Create an app](https://tools.slack.dev/bolt-js/getting-started#create-an-app) within our Getting started with JavaScript for Bolt page for instructions on how to create a Slack app on [api.slack.com/apps](https://api.slack.com/apps).
13
13
14
14
## Tokens and installing apps
15
-
Head over to [Tokens and installing apps](https://slack.dev/bolt-js/getting-started#tokens-and-installing-apps) within our Getting started with JavaScript for Bolt page for information on what tokens are, the [different kinds of tokens available](https://api.slack.com/docs/token-types), how to create them on [api.slack.com/apps](https://api.slack.com/apps), how to install your app to a live Slack workspace and finally how to retrieve your access token.
15
+
Head over to [Tokens and installing apps](https://tools.slack.dev/bolt-js/getting-started#tokens-and-installing-apps) within our Getting started with JavaScript for Bolt page for information on what tokens are, the [different kinds of tokens available](https://api.slack.com/docs/token-types), how to create them on [api.slack.com/apps](https://api.slack.com/apps), how to install your app to a live Slack workspace and finally how to retrieve your access token.
16
16
17
17
## Socket Mode vs. HTTP
18
18
Your app can [communicate with Slack using one of two methods](https://api.slack.com/apis/connections):
19
19
20
20
1.[Socket Mode](https://api.slack.com/apis/connections/socket). Connect to Slack using a direct and long-lived socket connection. This is our recommended approach when getting started in local development because of its convenience. However apps cannot use Socket Mode and also be listed in the [App Directory](https://api.slack.com/start/distributing/directory). For that, you'll need to use [HTTP](#http)). It is also important to remember that Socket Mode is more prone to network faults because the connection is a long-lived one.
21
-
2.[HTTP](https://api.slack.com/apis/connections/events-api). Expose your app using a public-facing URL that Slack will send HTTP requests to. This requires a few [additional steps](https://slack.dev/bolt-js/tutorial/getting-started-http#setting-up-events-with-http) to set up, but may be more resilient to network disruptions than communication via Socket Mode.
21
+
2.[HTTP](https://api.slack.com/apis/connections/events-api). Expose your app using a public-facing URL that Slack will send HTTP requests to. This requires a few [additional steps](https://tools.slack.dev/bolt-js/tutorial/getting-started-http#setting-up-events-with-http) to set up, but may be more resilient to network disruptions than communication via Socket Mode.
22
22
23
23
This tutorial will cover how to set up your app using either approach.
0 commit comments