IPCSocket.IsConnected

From Xojo Documentation

Read-Only Property (As Boolean )
BooleanValue = aIPCSocket.IsConnected

Supported for all project types and targets.

Returns True if connected to another application.