Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
tty
ReadStream
Interface ReadStream
Hierarchy
NodeSocket
ReadStream
Index
Properties
bufferSize
bytesRead
bytesWritten
isRaw
readable
remoteAddress
remotePort
writable
Methods
addListener
address
connect
destroy
destroySoon
emit
end
listeners
on
once
pause
pipe
removeAllListener
removeListener
resume
setEncoding
setKeepAlive
setMaxListeners
setNoDelay
setRawMode
setTimeout
write
Properties
public
bufferSize
:
number
public
bytesRead
:
number
public
bytesWritten
:
number
public
isRaw
:
boolean
public
readable
:
boolean
public
remoteAddress
:
string
public
remotePort
:
number
public
writable
:
boolean
Methods
public
addListener
(
event
:
string
, listener
:
Function
)
:
any
Parameters
event:
string
listener:
Function
Returns
any
public
addListener
(
event
:
string
, listener
:
Function
)
:
any
Parameters
event:
string
listener:
Function
Returns
any
public
address
(
)
:
{ port: number; family: string; address: string; }
Returns
{ port: number; family: string; address: string; }
public
connect
(
port
:
number
, host
?:
string
, connectionListener
?:
Function
)
Parameters
port:
number
host?:
string
optional
connectionListener?:
Function
optional
public
connect
(
path
:
string
, connectionListener
?:
Function
)
Parameters
path:
string
connectionListener?:
Function
optional
public
destroy
(
)
public
destroySoon
(
)
public
emit
(
event
:
string
, arg1
?:
any
, arg2
?:
any
)
Parameters
event:
string
arg1?:
any
optional
arg2?:
any
optional
public
emit
(
event
:
string
, arg1
?:
any
, arg2
?:
any
)
Parameters
event:
string
arg1?:
any
optional
arg2?:
any
optional
public
end
(
data
?:
any
, encoding
?:
string
)
Parameters
data?:
any
optional
encoding?:
string
optional
public
listeners
(
event
:
string
)
:
Array<{ Function: any; }>
Parameters
event:
string
Returns
Array<{ Function: any; }>
public
listeners
(
event
:
string
)
:
Array<{ Function: any; }>
Parameters
event:
string
Returns
Array<{ Function: any; }>
public
on
(
event
:
string
, listener
:
Function
)
:
any
Parameters
event:
string
listener:
Function
Returns
any
public
on
(
event
:
string
, listener
:
Function
)
:
any
Parameters
event:
string
listener:
Function
Returns
any
public
once
(
event
:
string
, listener
:
Function
)
Parameters
event:
string
listener:
Function
public
once
(
event
:
string
, listener
:
Function
)
Parameters
event:
string
listener:
Function
public
pause
(
)
public
pipe
(
destination
:
WritableStream
, options
?:
{ end?: boolean; }
)
Parameters
destination:
WritableStream
options?:
{ end?: boolean; }
optional
public
removeAllListener
(
event
:
string
)
Parameters
event:
string
public
removeAllListener
(
event
:
string
)
Parameters
event:
string
public
removeListener
(
event
:
string
, listener
:
Function
)
Parameters
event:
string
listener:
Function
public
removeListener
(
event
:
string
, listener
:
Function
)
Parameters
event:
string
listener:
Function
public
resume
(
)
public
setEncoding
(
encoding
?:
string
)
Parameters
encoding?:
string
optional
public
setKeepAlive
(
enable
?:
boolean
, initialDelay
?:
number
)
Parameters
enable?:
boolean
optional
initialDelay?:
number
optional
public
setMaxListeners
(
n
:
number
)
Parameters
n:
number
public
setMaxListeners
(
n
:
number
)
Parameters
n:
number
public
setNoDelay
(
noDelay
?:
boolean
)
Parameters
noDelay?:
boolean
optional
public
setRawMode
(
mode
:
boolean
)
Parameters
mode:
boolean
public
setTimeout
(
timeout
:
number
, callback
?:
Function
)
Parameters
timeout:
number
callback?:
Function
optional
public
write
(
str
:
string
, encoding
?:
string
, fd
?:
string
)
:
boolean
Parameters
str:
string
encoding?:
string
optional
fd?:
string
optional
Returns
boolean
public
write
(
buffer
:
Buffer
)
:
boolean
Parameters
buffer:
Buffer
Returns
boolean
public
write
(
data
:
any
, encoding
?:
string
, callback
?:
Function
)
Parameters
data:
any
encoding?:
string
optional
callback?:
Function
optional
Globals
assert
child_process
cluster
crypto
dgram
dns
domain
events
fs
http
https
net
os
path
punycode
querystring
readline
repl
stream
string_decoder
tls
tty
url
util
vm
zlib
ReadStream
bufferSize
bytesRead
bytesWritten
isRaw
readable
remoteAddress
remotePort
writable
addListener
address
connect
destroy
destroySoon
emit
end
listeners
on
once
pause
pipe
removeAllListener
removeListener
resume
setEncoding
setKeepAlive
setMaxListeners
setNoDelay
setRawMode
setTimeout
write
WriteStream
isatty