I am using eventSource API and added the addEventListener() to the eventsouce. The event source is activated till only 45 seconds. I want to keep the connection alive until the server send the response back to client.
Now, I am getting the below exception because there is no response back from the server till 45 secs.
EXCEPTION: No activity within 300000 milliseconds. Reconnecting.
Please give me some pointers to make the connection alive/ any other approach to achieve it.