|
|
@ -43,7 +43,7 @@ reloadStream.once('data', triggerReload) |
|
|
|
var pingChannel = inpageProvider.multiStream.createStream('pingpong') |
|
|
|
var pingChannel = inpageProvider.multiStream.createStream('pingpong') |
|
|
|
var pingStream = new PingStream({ objectMode: true }) |
|
|
|
var pingStream = new PingStream({ objectMode: true }) |
|
|
|
// wait for first successful reponse
|
|
|
|
// wait for first successful reponse
|
|
|
|
metamaskStream.once('data', function(){ |
|
|
|
metamaskStream.once('_data', function(){ |
|
|
|
pingStream.pipe(pingChannel).pipe(pingStream) |
|
|
|
pingStream.pipe(pingChannel).pipe(pingStream) |
|
|
|
}) |
|
|
|
}) |
|
|
|
endOfStream(pingStream, triggerReload) |
|
|
|
endOfStream(pingStream, triggerReload) |
|
|
|