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

Is there a way to handle socket connect error? #96

Open
FranciZ opened this issue Mar 17, 2020 · 0 comments
Open

Is there a way to handle socket connect error? #96

FranciZ opened this issue Mar 17, 2020 · 0 comments

Comments

@FranciZ
Copy link

FranciZ commented Mar 17, 2020

this.socketIO = new SocketIO(this.server);
this.socketIO.connect();

this.socketIO.once('connect', () => {
    console.log('Socket connected');
});

Is there an equivalent error event or some other way to handle an error when connecting? I'm aware about disconnect but that only triggers if the server has already been connected.

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

1 participant