new Pinger()
Utility for pinging the api. Allows checking for connection to the platofrm. Meant to be used directly form the Syncano instance.
Example
const connection = Syncano(); connection.Monitor.startMonitoring(); connection.Monitor.on('connected', () => { // connected to the api }); connection.Monitor.on('disconnected', (error) => { // disconnected from the api });