diff options
| author | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-12-04 00:07:58 +0300 |
|---|---|---|
| committer | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-12-04 00:07:58 +0300 |
| commit | 3e8fc59213e8567715affb8bff4e398a1f7f7fbc (patch) | |
| tree | 54a33b3b5239537425505a353171d2ad3479dc8a /web/assets/js/model/inbound.js | |
| parent | 462e02140dc3cc4a1de84561d6a1ca8a60400305 (diff) | |
WebSocket: Add heartbeatPeriod
Diffstat (limited to 'web/assets/js/model/inbound.js')
| -rw-r--r-- | web/assets/js/model/inbound.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/web/assets/js/model/inbound.js b/web/assets/js/model/inbound.js index 4661d51d..35f9dc3a 100644 --- a/web/assets/js/model/inbound.js +++ b/web/assets/js/model/inbound.js @@ -379,13 +379,15 @@ class WsStreamSettings extends XrayCommonClass { acceptProxyProtocol = false, path = '/', host = '', - headers = [] + headers = [], + heartbeatPeriod = 0, ) { super(); this.acceptProxyProtocol = acceptProxyProtocol; this.path = path; this.host = host; this.headers = headers; + this.heartbeatPeriod = heartbeatPeriod; } addHeader(name, value) { @@ -402,6 +404,7 @@ class WsStreamSettings extends XrayCommonClass { json.path, json.host, XrayCommonClass.toHeaders(json.headers), + json.heartbeatPeriod, ); } @@ -411,6 +414,7 @@ class WsStreamSettings extends XrayCommonClass { path: this.path, host: this.host, headers: XrayCommonClass.toV2Headers(this.headers, false), + heartbeatPeriod: this.heartbeatPeriod, }; } } |
