File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
- import { WebSocket } from 'ws' ;
2
1
import { Writable } from 'stream' ;
2
+ import { WebSocket } from 'ws' ;
3
3
import type {
4
4
APICommand ,
5
5
APIError ,
@@ -68,7 +68,11 @@ export class APIClient {
68
68
const RequestTimeout = 408 ;
69
69
const ServiceUnavailable = 503 ;
70
70
const CfRequestTimeout = 524 ;
71
- if ( res . statusCode === ServiceUnavailable || res . statusCode === RequestTimeout || res . statusCode === CfRequestTimeout ) {
71
+ if (
72
+ res . statusCode === ServiceUnavailable ||
73
+ res . statusCode === RequestTimeout ||
74
+ res . statusCode === CfRequestTimeout
75
+ ) {
72
76
console . warn (
73
77
`Connection to ${ this . server } failed: ${ res . statusMessage ?? '' } (${ res . statusCode } ).` ,
74
78
) ;
Original file line number Diff line number Diff line change @@ -12,16 +12,16 @@ import { parseConfig } from './config.js';
12
12
import { idfProjectConfig } from './esp/idfProjectConfig.js' ;
13
13
import { cliHelp } from './help.js' ;
14
14
import { loadChips } from './loadChips.js' ;
15
+ import { WokwiMCPServer } from './mcp/MCPServer.js' ;
15
16
import { initProjectWizard } from './project/initProjectWizard.js' ;
16
17
import { readVersion } from './readVersion.js' ;
17
18
import { DelayCommand } from './scenario/DelayCommand.js' ;
18
19
import { ExpectPinCommand } from './scenario/ExpectPinCommand.js' ;
19
20
import { SetControlCommand } from './scenario/SetControlCommand.js' ;
21
+ import { TakeScreenshotCommand } from './scenario/TakeScreenshotCommand.js' ;
20
22
import { WaitSerialCommand } from './scenario/WaitSerialCommand.js' ;
21
23
import { WriteSerialCommand } from './scenario/WriteSerialCommand.js' ;
22
24
import { uploadFirmware } from './uploadFirmware.js' ;
23
- import { TakeScreenshotCommand } from './scenario/TakeScreenshotCommand.js' ;
24
- import { WokwiMCPServer } from './mcp/MCPServer.js' ;
25
25
26
26
const millis = 1_000_000 ;
27
27
You can’t perform that action at this time.
0 commit comments