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

Initial messages not delivered #236

Open
teejteej opened this issue Sep 28, 2020 · 3 comments
Open

Initial messages not delivered #236

teejteej opened this issue Sep 28, 2020 · 3 comments

Comments

@teejteej
Copy link

teejteej commented Sep 28, 2020

Hi,

When I enqueue some messages via the Rails console, then load the page, the messages are never delivered.
Similarly when I load the load the page, then enqueue some messages in the first few seconds, these are not delivered too.

Only a few seconds after the page is loaded, then enqueue some messages, they get delivered from that moment on.

Any ideas where I can start looking? Using Nginx (proxy_buffering off) and Puma.

@lucasfeijo
Copy link

lucasfeijo commented May 18, 2021

@teejteej Did you end up fixing this issue? I experience the same slowness to subscribe.

@teejteej
Copy link
Author

@lucasfeijo Never got to dig more into the issue, so I haven't resolved it yet.

@rafbgarcia
Copy link

@teejteej did you try tweaking the callbackInterval property? In our case, users subscribe to channels as they switch conversations, which triggers the long polling to abort and restart after a minimum interval defined by that property (15 seconds by default).

I'm not sure if that's your case, though, but you can decrease it to, say, 100ms, and see if helps.

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

No branches or pull requests

3 participants