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

reconnect to stan(nats streaming) within existing nats connection #9

Open
mardachevdv opened this issue Dec 19, 2018 · 1 comment
Open

Comments

@mardachevdv
Copy link

hi @byrnedo
i think should be a ability to check(and reconnect) for valid stan connection(nats streaming), not only nats server itself

nats streaming server can close(remove clientId) stan connections using hb_interval, hb_timeout, hb_fail_count
but tcp and nats protocol connection are valid and isConnected() method return true

@byrnedo
Copy link
Owner

byrnedo commented Dec 19, 2018

Hi @mardachevdv,

Happy to hear you're using php-nats-streaming :)

Yeah, that is (from first glance) a valid request.
I don't use php a whole lot right now, are you in any way interested in making a pull request?

Edit: having a quick look at the code it would seem to be to make 2 separate functions, one to connect to nats, one to stan, then add a stanReconnect function that just calls the second...

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