Skip to main content
Skip to main content

DuplexOptions

Properties

allowHalfOpenboolean
autoDestroyboolean
decodeStringsboolean
defaultEncodingBufferEncoding
emitCloseboolean
highWaterMarknumber
objectModeboolean
readableHighWaterMarknumber
readableObjectModeboolean
signalAbortSignal
When provided the corresponding AbortController can be used to cancel an asynchronous action.
writableCorkednumber
writableHighWaterMarknumber
writableObjectModeboolean

Methods

construct

Parameters

thisDuplexRequired
callback(error?: null | Error) => voidRequired

Returns

voidvoid

destroy

Parameters

thisDuplexRequired
errornull | ErrorRequired
callback(error: null | Error) => voidRequired

Returns

voidvoid

final

Parameters

thisDuplexRequired
callback(error?: null | Error) => voidRequired

Returns

voidvoid

read

Parameters

thisDuplexRequired
sizenumberRequired

Returns

voidvoid

write

Parameters

thisDuplexRequired
chunkanyRequired
encodingBufferEncodingRequired
callback(error?: null | Error) => voidRequired

Returns

voidvoid

writev

Parameters

thisDuplexRequired
chunks{ chunk: any ; encoding: [BufferEncoding](/references/js-client/internal/types/internal.BufferEncoding) }[]Required
callback(error?: null | Error) => voidRequired

Returns

voidvoid
Was this section helpful?