Real-time connection detection