-
Notifications
You must be signed in to change notification settings - Fork 662
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
socket-mode: prep for major release #1732
Conversation
- bump minimum node version to 18 - remove unused p-* dependencies - code changes to move to new major version of ws and web-api dependencies
A Socket Mode client never receives binary payloads. You can safely assume that WS message payloads are always JSON format text data. |
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.
Looks good to me. Left a minor comment about data value existence. If we don't need to worry about it, please ignore it.
…ped-for-now suite of tests for failure modes
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.
Thank you! Left a few minor comments.
…terface requirements. Tweak `start` behaviour to return once the client is connected rather than when authenticated (and still connecting). Binary and malformed JSON messages are raised now as DEBUG level logs. Added integration tests assuring the documented lifecycle events are raised.
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.
Thank you; Looks good to me
Thank you so much for your patience and consistent reviews Kaz 🙇 |
.nycrc.json
file as other packages in this repo use, for holding code coverage configurationws
andweb-api
dependenciesws
and made the updates in here based on that. In summary, raw string buffers are passed to handler methods now (previously,ws
would decode the string on your behalf automatically). Presumably to support binary payloads.