Skip to content
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

feat(useWebSocket): allow different heartbeat response message #3950

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lavolpecheprogramma
Copy link
Contributor

Description

As mentioned in #2861 it can be useful to provide a custom response message.
For example, AWS does not charge for a ping/pong request, but with the current implementation the request must be ping/ping.
I made changes to be backwards compatible with the existing user implementation.

Additional context

In my opinion, the default responseMessage should be "pong", but it will be a breaking change.

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label May 3, 2024
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant