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

Cannot trigger 'disconnected' event when client connect fails #74

Open
mrcoon opened this issue Jun 14, 2018 · 2 comments
Open

Cannot trigger 'disconnected' event when client connect fails #74

mrcoon opened this issue Jun 14, 2018 · 2 comments

Comments

@mrcoon
Copy link

mrcoon commented Jun 14, 2018

The default state of the client is 'DISCONNECTED'. When the client has failed to connect, the state has not changed and the 'state' event cannot be triggered. As a result, the corresponding operation cannot be performed when the client is disconnected.

@samlin08
Copy link

It also occurs to me, i have added all the events to client instance which list behind the State Part connected, connectedReadOnly, disconnected, expired and authenticationFailed. not any event has been triggered after connect failed. The error come from a wrong server ip. In this case may still need a trigger for error handling .

@rramk
Copy link
Contributor

rramk commented Feb 25, 2020

Same here, it happened with an invalid server. can we get a fix for this? @alexguan

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

3 participants