How you get rid of "We are having trouble communicating with the server. Please wait a moment while we attempt to reconnect."

You could try putting this (from this thread) in Session.Opening:

var exec() as String
exec.Add( "setInterval(function() {" )
exec.Add( "  if ($('#dialog_disconnect').length > 0 || $('#dialog_reconnect').length > 0) {" )
exec.add( "    $.ajax({url : window.location.href}).done(function(data, statusText, xhr) {" )
exec.add( "      if (xhr.status == 200) setTimeout(function() {location.reload();},10000);" )
exec.Add( "    });" )
exec.Add( "  }" )
exec.Add( "}, 10000);" )
ExecuteJavaScript( String.FromArray( exec, "" ) )

Others have been using it successfully. When it detects that the disconnect or reconnect modals are shown, it waits 10 seconds between checks to see if the connection is restored, then reloads the page when it is.

3 Likes