How to implement client reconnect for fastpath client

I need a reconnect for fastpath web client

http://www.igniterealtime.org/issues/browse/ENT-140

Does anyone have a clue how you might implement it? I don’t know the code to well. I see chatmain.jsp has the alert when disconnected, would like to try to reconnect a couple of times and continue the conversation