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

Soketi Support/disconnection error #72

Open
NinjaJake86 opened this issue Dec 12, 2022 · 1 comment
Open

Soketi Support/disconnection error #72

NinjaJake86 opened this issue Dec 12, 2022 · 1 comment

Comments

@NinjaJake86
Copy link

Hello!

Does this have soketi support? Currently trying to get it working but my client keeps disconnecting when pysher sends the "ping to pusher" message, any ideas?

@JamesNeumann
Copy link

Hi,
I had the same problem with Soketi. The initial ping works for me. The next ping always results in a disconnect.

It seems to be caused by a too large ping interval (120s):
https://github.com/deepbrook/Pysher/blob/edc940cf53311eef8970694e4c10ded7ff906901/src/pysher/connection.py#L60C14-L60C27

I tried two fixes that work:

  1. Manually calling: client.connection.send_ping() every x seconds < 120.
  2. For my purposes I changed the self.ping_interval variable to < 120.

It seems like the disconnect only happens at 120s, because 119s seems to be working without a problem.
I did not find the solution yet, why exactly 120s results in a disconnect.

Hope this also fixes your issues.

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

No branches or pull requests

2 participants