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

Support emits the pong event to the client and improves code clarity #302

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ali-master
Copy link

  • Fixed typos and inconsistencies in comments for better readability.
  • Replaced redundant expressions with simpler alternatives for clarity.
  • Added pong event handling for server-side communication.

- Fixed typos and inconsistencies in comments for better readability.
- Replaced redundant expressions with simpler alternatives for clarity.
- Added `pong` event handling for server-side communication.
@FZambia
Copy link
Member

FZambia commented Jan 18, 2025

Hello @ali-master - thanks!

I do not understand the part with pong - please elaborate with problem and example how added pong fixes it

@ali-master
Copy link
Author

Hey there!

Absolutely, we’ve got stats and metrics for our websockets bridge. We calculate the metrics for each socket right in their pong event callback. We've done it with other libraries, except for the centrifugo library. Let me know if you have any questions!

@ali-master
Copy link
Author

ali-master commented Jan 22, 2025

Any news @FZambia?

@FZambia
Copy link
Member

FZambia commented Jan 23, 2025

we’ve got stats and metrics for our websockets bridge. We calculate the metrics for each socket right in their pong event callback.

I am still guessing what exactly this allows to achieve and how it may be useful to other library users. Probably it's not the best solution to the root problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants