Atmosphere / wasync

WebSockets with fallback transports client library for Node.js, Android and Java
http://async-io.org
161 stars 47 forks source link

reconnect with long-polling transport #150

Open Michenux opened 7 years ago

Michenux commented 7 years ago

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);