wasync icon indicating copy to clipboard operation
wasync copied to clipboard

reconnect with long-polling transport

Open Michenux opened this issue 6 years ago • 0 comments

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

Michenux avatar Jul 28 '17 08:07 Michenux