Checking the TCPIP connection status

Hi! I’m trying to check if the connectione between robot (client) and router is active. To connect with the server I’m using socket_open() in Before Start sequence. In case of closing server/losing connection I’d ike to constantly check in a Thread if the connection between robot and server is still active. Is there a way to determine that without using echo server test? This functionality sounds like a pretty basic function, but I couldn’t find anything in neither URscript nor Polyscope manual.