Checks if the socket is currently connected.
Returns true if the socket is connected, otherwise - false.
The SocketIsConnected() function allows checking the current socket connection status.
The function can be called only from Expert Advisors and scripts, as they run in their own execution threads. If calling from an indicator, GetLastError() returns the error 4014 – "Function is not allowed for call".