I'm implementing Bayeuxclient(long-polling) for cometD connections for asynchronous messaging. Intermittently I receive a disconnect message out of the blue ( I haven't found any exception either in server or application logs) and try reconnecting. I believe some unknown latency is causing the issue (I'm not 100% sure).
Can you please suggest how I can workaround the issue ? By moving from long-polling to websockets can we have better performance ?