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/outbound.js | |
| parent | 462e02140dc3cc4a1de84561d6a1ca8a60400305 (diff) | |
WebSocket: Add heartbeatPeriod
Diffstat (limited to 'web/assets/js/model/outbound.js')
| -rw-r--r-- | web/assets/js/model/outbound.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js index 83ac4306..c9400efc 100644 --- a/web/assets/js/model/outbound.js +++ b/web/assets/js/model/outbound.js @@ -206,16 +206,23 @@ class KcpStreamSettings extends CommonClass { } class WsStreamSettings extends CommonClass { - constructor(path = '/', host = '') { + constructor( + path = '/', + host = '', + heartbeatPeriod = 0, + + ) { super(); this.path = path; this.host = host; + this.heartbeatPeriod = heartbeatPeriod; } static fromJson(json = {}) { return new WsStreamSettings( json.path, json.host, + json.heartbeatPeriod, ); } @@ -223,6 +230,7 @@ class WsStreamSettings extends CommonClass { return { path: this.path, host: this.host, + heartbeatPeriod: this.heartbeatPeriod }; } } |
