-
Notifications
You must be signed in to change notification settings - Fork 401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove references to passing port to start
method when using socket mode
#1202
Conversation
… mode in Getting Started guides. Fixes #1200.
@@ -161,7 +161,8 @@ const app = new App({ | |||
token: process.env.SLACK_BOT_TOKEN, | |||
signingSecret: process.env.SLACK_SIGNING_SECRET, | |||
socketMode: true, | |||
appToken: process.env.SLACK_APP_TOKEN | |||
appToken: process.env.SLACK_APP_TOKEN, | |||
port: process.env.PORT || 3000 // ソケットモードはポートでリッスンしませんが、アプリがOAuthに応答するようにしたい場合は、ポートでリッスンする必要があります。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@seratch please excuse my poor translation (using Google Translate) - could you take a look at this and make sure it is not embarrassingly bad? Thank you! 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wongjas may also be able to assist here!
Codecov Report
@@ Coverage Diff @@
## main #1202 +/- ##
=======================================
Coverage 72.22% 72.22%
=======================================
Files 17 17
Lines 1433 1433
Branches 430 430
=======================================
Hits 1035 1035
Misses 322 322
Partials 76 76 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-japanese parts look good!
Curious, are you using some kind of linter that's auto-removing those end-spaces?
No.. just my own eye-twitch-causing obsessions 🤓 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noodling as I read through this: if the inclusion of a port
is only relevant if the developer is dealing with OAuth, should we include the usage of port
only in that section of the documentation, rather than adding it to all examples where that might not be the case?
docs/_tutorials/getting_started.md
Outdated
@@ -176,7 +176,8 @@ const app = new App({ | |||
token: process.env.SLACK_BOT_TOKEN, | |||
signingSecret: process.env.SLACK_SIGNING_SECRET, | |||
socketMode: true, | |||
appToken: process.env.SLACK_APP_TOKEN | |||
appToken: process.env.SLACK_APP_TOKEN, | |||
port: process.env.PORT || 3000 // socket mode doesn't listen on a port, but in case you want your app to respond to OAuth, you still need to listen on some port! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does this comment look in the live document? I could be totally wrong, but it seems like it will required a far scroll right to read. If so, is there a way to truncate it while keeping the same meaning?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me know what you think!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, on both points I entirely forgot this was strictly limited to the Getting Started layout. LGTM
Co-authored-by: Kazuhiro Sera <[email protected]>
Co-authored-by: Kazuhiro Sera <[email protected]>
@misscoded I think it's worthwhile pointing out the need for a What other alternatives could we consider? Remove all references of a port when it comes to the section of the Getting Started guide where we move to socket mode? I feel like that would be confusing given the very first snippet in the guide does use a port (and implicitly the It's not ideal whether we include port or ignore it altogether when it comes to Socket Mode... tradeoffs in both situations 🤔 |
In the getting started guides.
Fixes #1200.