override again

This commit is contained in:
Moon Man 2024-01-28 10:22:30 -05:00
parent a7535f4392
commit dc5c44a18d
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ export class Port extends Duplex {
super({ objectMode: true });
}
_read() {
read() {
const lenBytes = process.stdin.read(4);
if (lenBytes) {
const termLen = bert.bytesToInt(lenBytes, 4, true);
@ -30,7 +30,7 @@ export class Port extends Duplex {
else return null;
}
_write(obj: any, encodingOrCallback?: BufferEncoding | WriteCallback, callback?: WriteCallback | undefined) {
write(obj: any, encodingOrCallback?: BufferEncoding | WriteCallback, callback?: WriteCallback | undefined) {
const actualCallback: any = callback || typeof encodingOrCallback === "function" ? encodingOrCallback : undefined;
try {