Photon SoftAP detect connected device

When a device (say iOS device) connects to the Photon SoftAP service, is there a way for the Photon to execute a function? Or can you poll this data on the Photon it self? Simple example, blink an LED when a device connects to it during setup.