Add Websocket Test v2

This commit is contained in:
Your Name
2025-02-17 17:04:58 -08:00
parent fc628e3bea
commit 587699d7b3
8 changed files with 163 additions and 31 deletions
+10
View File
@@ -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?