Websocket connection status lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- JJJ · 2023-10-18 16:10 I have a simple websocket client made using fcl-web. How could I monitor the connection status and re-establish the connection if the connection to the server is lost? ---------------------------------------------------------------------- yus · 2023-10-19 20:48 Hello. If the connection is lost, OnDisconnect event will be called when trying to send data to the server. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i     FClient:=TWebsocketClient.Create(Self);  FClient.OnDisconnect:=@DoDisconnect;