cdp: debug stdio pipe send
This commit is contained in:
parent
4d63ab3056
commit
b2f5229bc8
@ -124,6 +124,7 @@ export default async ({ pipe: { pipeWrite, pipeRead } = {}, port }) => {
|
|||||||
pipeWrite.on('error', () => {}); // ignore write error, likely just closed
|
pipeWrite.on('error', () => {}); // ignore write error, likely just closed
|
||||||
|
|
||||||
_send = data => {
|
_send = data => {
|
||||||
|
log('debug:', closed, !pipeWrite.writable);
|
||||||
if (closed || !pipeWrite.writable) return new Error('CDP connection closed');
|
if (closed || !pipeWrite.writable) return new Error('CDP connection closed');
|
||||||
|
|
||||||
pipeWrite.write(data);
|
pipeWrite.write(data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user