I'm currently developing a system in Cakephp 3.4 which needs to check for connectivity with another machine every X seconds by sending a 'ping'.
I've read the cookbook section about Events in the docs but I couldn't find any Events that trigger themselves automatically within an interval of time in an infinite way.
Where should this loop be placed within the framework structure?.