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 with long-polling transport #150

Open
Michenux opened this issue Jul 28, 2017 · 0 comments
Open

reconnect with long-polling transport #150

Michenux opened this issue Jul 28, 2017 · 0 comments

Comments

@Michenux
Copy link

Hi,

The following test doesnot work me :
1- Start Atmosphere Chat Webapp (tomcat container)
2- Run a java program that sends a message every 5s seconds
3- I stop Tomcat
4- The sender program gets the exception from the Event.ERROR (java.net.ConnectException: Connection refused: localhost/127.0.0.1:8080). But after that, nothing happens, no automatic reconnections.

wasync: 2.1.5
transport: long polling

DefaultOptionsBuilder builder = client.newOptionsBuilder();
builder.reconnect(true);
builder.pauseBeforeReconnectInSeconds(5);
builder.reconnectAttempts(9999);
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