Ensure JS SSE & WS transports will attempt reconnecting multiple times

#1684