diff --git a/src/index.tsx b/src/index.tsx index 771fd6c..a220801 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -93,7 +93,7 @@ class Printer { } } - async receive(timeout: number = 100): Promise { + async receive(timeout: number = 1000): Promise { return new Promise((resolve, reject) => { const timeoutId = setTimeout(() => reject(new Error('Timeout')), timeout); (this._connection! as EventEmitter).once('data', (data) => {