Methods
# addurl(url) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
url |
string | The url to add |
Return's true if sucess
boolean
# removeurl(url) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
url |
string | The url to remove |
Return's true if sucess
boolean
# setinterval(interval) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
interval |
number | The time to ping the url after |
Return's true if sucess
boolean
# async start(log, uniqueid) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
log |
boolean | Whether to log the response in console or not. |
uniqueid |
string | The unique id for the dataset |
Return's true if sucess
boolean
# uniqueaddurl(url, uniqueid) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
url |
string | The url to add |
uniqueid |
string | The unique id for the dataset |
Return's true if sucess
boolean
# uniqueallurls(uniqueid) → {Array}
Parameters:
Name | Type | Description |
---|---|---|
uniqueid |
string | The unique id for the dataset |
Return's the url's
Array
# uniqueclear(uniqueid) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
uniqueid |
string | The unique id for the dataset |
Return's true if sucess
boolean
# uniqueremoveurl(url, uniqueid) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
url |
string | The url to remove |
uniqueid |
string | The unique id for the dataset |
Return's true if sucess
boolean
# uniquesetinterval(interval, uniqueid) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
interval |
number | The time to ping the url after |
uniqueid |
string | The unique id for the dataset |
Return's true if sucess
boolean
# async uniquestart(log, uniqueid) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
log |
boolean | Whether to log the response in console or not. |
uniqueid |
string | The unique id for the dataset |
Return's true if sucess
boolean
# async uniquestartall(log) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
log |
boolean | Whether to log the response in console or not. |
Return's true if sucess
boolean
# uniquestop(uniqueid) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
uniqueid |
string | The unique id for the dataset |
Return's true if sucess
boolean
# async uptime(url, interval) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
url |
string | The url to ping |
interval |
number | The time in ms to ping the url after |
Return's true if sucess
boolean