降低终端输入延迟:将WebSocket等待超时从1200ms降至200ms
This commit is contained in:
3811
package-lock.json
generated
Normal file
3811
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -50,7 +50,7 @@ type TerminalInputControlMessage = {
|
||||
const CONTROL_TAG_JSON = 0x01;
|
||||
const WS_READY_STATE_OPEN = 1;
|
||||
const DEFAULT_TERMINAL_INPUT_WS_PATH = '/api/terminal/input-ws';
|
||||
const WS_SEND_WAIT_MS = 1200;
|
||||
const WS_SEND_WAIT_MS = 200;
|
||||
const WS_RECONNECT_INITIAL_DELAY_MS = 1000;
|
||||
const WS_RECONNECT_MAX_DELAY_MS = 30000;
|
||||
const WS_RECONNECT_JITTER_MS = 250;
|
||||
|
||||
Reference in New Issue
Block a user