mirror of
https://github.com/koichixD/uptime-kuma.git
synced 2026-09-04 17:23:21 +00:00
Add Websocket Test v2
This commit is contained in:
@@ -96,6 +96,8 @@ class Monitor extends BeanModel {
|
||||
parent: this.parent,
|
||||
childrenIDs: preloadData.childrenIDs.get(this.id) || [],
|
||||
url: this.url,
|
||||
wsurl: this.wsurl,
|
||||
wsIgnoreHeaders: this.getWsIgnoreHeaders(),
|
||||
method: this.method,
|
||||
hostname: this.hostname,
|
||||
port: this.port,
|
||||
@@ -255,6 +257,14 @@ class Monitor extends BeanModel {
|
||||
return Boolean(this.ignoreTls);
|
||||
}
|
||||
|
||||
/**
|
||||
* Parse to boolean
|
||||
* @returns {boolean} Should WS headers be ignored?
|
||||
*/
|
||||
getWsIgnoreHeaders() {
|
||||
return Boolean(this.wsIgnoreHeaders);
|
||||
}
|
||||
|
||||
/**
|
||||
* Parse to boolean
|
||||
* @returns {boolean} Is the monitor in upside down mode?
|
||||
|
||||
Reference in New Issue
Block a user