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

There is no notification for websocket server success start #271

Closed
farin opened this issue Aug 22, 2014 · 1 comment
Closed

There is no notification for websocket server success start #271

farin opened this issue Aug 22, 2014 · 1 comment

Comments

@farin
Copy link

farin commented Aug 22, 2014

I can listen to onError to get startup errors (like: bind, address alredy used) - (it still not perfect because it is not limited to start up errors only) But is still impossible to wait for success start.

Practical example - I have app which runs websocket server and connect to it internally. Additionally basic (server+client) to mode it can be used in strictly client mode connecting remotely to another running app.

When starting internal server in basic mode app also needs to connect it. I can start and connect immediatelly, that works for common user scenario. But what if another app instance in basic mode is already running. Server start() triggers onError (but in it's own thread) and my immdiate connect makes connection to alredy running app instance. (but that is wrong, i wanna only connection to my server or fail. Without waiting for success start i am unable to prevent wrong connection.

@marci4
Copy link
Collaborator

marci4 commented Apr 15, 2017

Hello @farin,

I added a method onStart() for you and others to get notified, when no error occurred during startup.

Greetings
marci4

@marci4 marci4 closed this as completed Apr 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants