message_bus icon indicating copy to clipboard operation
message_bus copied to clipboard

Initial messages not delivered

Open teejteej opened this issue 5 years ago • 3 comments

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.

teejteej avatar Sep 28 '20 08:09 teejteej

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

lucasfeijo avatar May 18 '21 18:05 lucasfeijo

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

teejteej avatar May 18 '21 19:05 teejteej

@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.

rafbgarcia avatar May 18 '21 19:05 rafbgarcia