centrifugal / centrifugo

Scalable real-time messaging server in a language-agnostic way. Self-hosted alternative to Pubnub, Pusher, Ably. Set up once and forever.
https://centrifugal.dev
Apache License 2.0
8.45k stars 598 forks source link

[question] Issue when reconnecting and proxy connect to BE #870

Closed duy-nguyen-ts closed 3 months ago

duy-nguyen-ts commented 3 months ago

Hi guys, I want to know exactly how Centrifugal handle this case and why it happen ?

Ask your question. Please provide as many details as possible – you will get the answer much faster then!

"Show us an example of what you mean!". An example can be useful, otherwise we're left guessing!

...

FZambia commented 3 months ago

Hello @duy-nguyen-ts

Centrifugo does not have any 30 sec timeout for reconnects by default, so I don't know what exactly is going on in your case. Our SDKs try to reconnect indefinitely. It can be 30 sec or one minute, or one hour - as soon as connection can be established the reconnect will happen and you should receive the connect event. You have not mentioned any SDK on FE, did not provide any reproducing steps and code - so I can't help you more at this point.

duy-nguyen-ts commented 3 months ago

Thanks @FZambia , I have investigated and found it was an issue of my integration flow of FE <-> Centrifugal <-> BE.