diff options
| author | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-07-29 14:13:37 +0300 |
|---|---|---|
| committer | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-07-29 14:16:07 +0300 |
| commit | fdfc29f6cd89bace7ffb6591eab953327a4ef8ba (patch) | |
| tree | 86aba241578c6a260d46e19437732293e745f70b /web/assets | |
| parent | 4ec104c5ee1e5dc06e7078fb09c3f0b7a26a0e44 (diff) | |
new - splithttp (noSSEHeader)
Diffstat (limited to 'web/assets')
| -rw-r--r-- | web/assets/js/model/xray.js | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js index 34a884ca..e63e594c 100644 --- a/web/assets/js/model/xray.js +++ b/web/assets/js/model/xray.js @@ -523,7 +523,15 @@ class HTTPUpgradeStreamSettings extends XrayCommonClass { } class SplitHTTPStreamSettings extends XrayCommonClass { - constructor(path='/', host='', headers=[] , scMaxConcurrentPosts= 100, scMaxEachPostBytes= 1000000, scMinPostsIntervalMs= 30) { + constructor( + path = '/', + host = '', + headers = [], + scMaxConcurrentPosts = 100, + scMaxEachPostBytes = 1000000, + scMinPostsIntervalMs = 30, + noSSEHeader = false, + ) { super(); this.path = path; this.host = host; @@ -531,6 +539,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass { this.scMaxConcurrentPosts = scMaxConcurrentPosts; this.scMaxEachPostBytes = scMaxEachPostBytes; this.scMinPostsIntervalMs = scMinPostsIntervalMs; + this.noSSEHeader = noSSEHeader; } addHeader(name, value) { @@ -541,7 +550,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass { this.headers.splice(index, 1); } - static fromJson(json={}) { + static fromJson(json = {}) { return new SplitHTTPStreamSettings( json.path, json.host, @@ -549,6 +558,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass { json.scMaxConcurrentPosts, json.scMaxEachPostBytes, json.scMinPostsIntervalMs, + json.noSSEHeader, ); } @@ -560,6 +570,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass { scMaxConcurrentPosts: this.scMaxConcurrentPosts, scMaxEachPostBytes: this.scMaxEachPostBytes, scMinPostsIntervalMs: this.scMinPostsIntervalMs, + noSSEHeader: this.noSSEHeader, }; } } |
