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

PubNub listener stops listening to the messages after sometime. #163

Open
gautam-tiwari opened this issue Aug 1, 2024 · 0 comments
Open

Comments

@gautam-tiwari
Copy link

  • I have build an application which uses the pubnub go library. It subscribes to n number of pubnub channels on its start-up.
  • The listener for which the messages come consistently(atleast a couple of times in a day) it doesn't stops listening.
  • The listener for which the messages don't come consistently(one case I found was where there was no message send on the channel for 5 days) it stops listening to the messages.
  • It seems like if the listener is in idle state for a certain amount of time it stops listening to the channel.

Solution that I came up with:-

  • Run a cron job which checks for the last message received from the pubnub historical message and the last message that was processed by the pubnub listener handler.
  • It they differ then resubscribe.
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

1 participant