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' ;
21import { Writable } from 'stream' ;
2+ import { WebSocket } from 'ws' ;
33import type {
44 APICommand ,
55 APIError ,
@@ -68,7 +68,11 @@ export class APIClient {
6868 const RequestTimeout = 408 ;
6969 const ServiceUnavailable = 503 ;
7070 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+ ) {
7276 console . warn (
7377 `Connection to ${ this . server } failed: ${ res . statusMessage ?? '' } (${ res . statusCode } ).` ,
7478 ) ;
Original file line number Diff line number Diff line change @@ -12,16 +12,16 @@ import { parseConfig } from './config.js';
1212import { idfProjectConfig } from './esp/idfProjectConfig.js' ;
1313import { cliHelp } from './help.js' ;
1414import { loadChips } from './loadChips.js' ;
15+ import { WokwiMCPServer } from './mcp/MCPServer.js' ;
1516import { initProjectWizard } from './project/initProjectWizard.js' ;
1617import { readVersion } from './readVersion.js' ;
1718import { DelayCommand } from './scenario/DelayCommand.js' ;
1819import { ExpectPinCommand } from './scenario/ExpectPinCommand.js' ;
1920import { SetControlCommand } from './scenario/SetControlCommand.js' ;
21+ import { TakeScreenshotCommand } from './scenario/TakeScreenshotCommand.js' ;
2022import { WaitSerialCommand } from './scenario/WaitSerialCommand.js' ;
2123import { WriteSerialCommand } from './scenario/WriteSerialCommand.js' ;
2224import { uploadFirmware } from './uploadFirmware.js' ;
23- import { TakeScreenshotCommand } from './scenario/TakeScreenshotCommand.js' ;
24- import { WokwiMCPServer } from './mcp/MCPServer.js' ;
2525
2626const millis = 1_000_000 ;
2727
You can’t perform that action at this time.
0 commit comments