Websockets mode with custom receiver
See original GitHub issueDescription
I was testing out socket mode with an existing bot but was met with dispatch_failed
errors. Turns out this was because the bot was using a custom express receiver, which takes the place of SocketModeReceiver
in the framework code. I don’t think I encountered any mention of this while I was reading about socket mode… Or if this is mentioned somewhere, I’d recommend calling this out somewhere a little more discoverable.
What type of issue is this? (place an x
in one of the [ ]
)
- bug
- enhancement (feature request)
- question
- documentation related
- example code related
- testing related
- discussion
Requirements (place an x
in each of the [ ]
)
- I’ve read and understood the Contributing guidelines and have done my best effort to follow them.
- I’ve read and agree to the Code of Conduct.
- I’ve searched for any related issues and avoided creating a duplicate issue.
Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
package version: 3.0.0
node version: 14
OS version(s):
Steps to reproduce:
- Go back in time and create a bolt app with a custom express receiver before websocket mode was released
- migrate to Bolt v3
- enable socket mode
- confusion
Expected result:
It would be cool if the bolt framework could somehow tell you that the express receiver provided wasn’t a correct implementation of a websocket receiver if App
is initialized with socketMode
flipped on. Not sure of the feasibility of this though.
I had turned on developerMode
at some point hoping to see some kind of error message but saw none. It wasn’t until I actually got socket mode working that I realized that I was supposed to get additional socket-related logs.
Actual result:
What actually happened
Attachments:
Logs, screenshots, screencast, sample project, funny gif, etc.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
In the bolt js documentation it mentions a code for
SocketModeReceiver
but does not provide an example for a custom route… any change to add one? . I tested the code there but it fails to start saying that :To track the progress in a single place, let us close this issue now. Please check #866 for this topic.