Poll the backend for changes.
public pollForChanges ( integer $heartbeat, integer $interval, array $options = [] ) : boolean | integer | ||
$heartbeat | integer | The heartbeat lifetime to wait for changes. |
$interval | integer | The wait interval between poll iterations. |
$options | array | An options array containing any of: - pingable: (boolean) Only poll collections with the pingable flag set. DEFAULT: false |
리턴 | boolean | integer | True if changes were detected in any of the collections, false if no changes detected or a status code if failed. |