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

Network error handling in Socket.io Swift client (v 13.0.1) #150

Open
kinza88 opened this issue Dec 26, 2017 · 1 comment
Open

Network error handling in Socket.io Swift client (v 13.0.1) #150

kinza88 opened this issue Dec 26, 2017 · 1 comment

Comments

@kinza88
Copy link

kinza88 commented Dec 26, 2017

When using Socket.io all i could found is timeout for .connect() as:

socket.connect(timeoutAfter: 5) {
     print("Could not connect")
}

How can i implement timeout in emit? I got an example of emitWithAck but that wasn't clear enough. I want to ask that how can I get all the network errors in .connect or .emit? For example, when the server is down "could not connect to server" message gets printed in the log. But how can I handle it through callbacks?
Any help would be appreciated.

@kinza88
Copy link
Author

kinza88 commented Dec 26, 2017

@nuclearace I need you to have a look in this. Thankyou.

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