@@ -177,6 +177,10 @@ class IOSDebugService implements IDebugService {
177
177
let timeout = this . $utils . getMilliSecondsTimeout ( IOSDebugService . TIMEOUT_SECONDS ) ;
178
178
awaitNotification ( npc , notification . appLaunching ( projectId ) , timeout ) . wait ( ) ;
179
179
process . nextTick ( ( ) => {
180
+ // console.log("BEFORE SEND PAGE RELOAD!!!!!");
181
+ /* let pageReloadMessage = {"method":"Page.reload","params":{"ignoreCache":false},"id":54};
182
+ npc.postNotificationAndAttachForData(pageReloadMessage);
183
+ console.log("DEBUG BRK CORE!!!!"); */
180
184
npc . postNotificationAndAttachForData ( notification . waitForDebug ( projectId ) ) ;
181
185
npc . postNotificationAndAttachForData ( notification . attachRequest ( projectId ) ) ;
182
186
} ) ;
@@ -338,6 +342,13 @@ function createTcpSocketProxy($logger: ILogger, socketFactory: (handler: (socket
338
342
process . exit ( 0 ) ;
339
343
} ) ;
340
344
345
+ let message = '{ "method":"Page.reload","params":{"ignoreCache":false},"id":54 }' ;
346
+ let length = Buffer . byteLength ( message , "utf16le" ) ;
347
+ let payload = new Buffer ( length + 4 ) ;
348
+ payload . writeInt32BE ( length , 0 ) ;
349
+ payload . write ( message , 4 , length , "utf16le" ) ;
350
+ backendSocket . write ( payload ) ;
351
+
341
352
backendSocket . pipe ( frontendSocket ) ;
342
353
frontendSocket . pipe ( backendSocket ) ;
343
354
frontendSocket . resume ( ) ;
0 commit comments