Build
Docs
Reference
Guides
Blog
Discord
/
node:net
/
SocketEventMap
P
close
P
connect
P
connectionAttempt
P
connectionAttemptFailed
P
connectionAttemptTimeout
P
data
P
drain
P
end
P
error
P
finish
P
lookup
P
pause
P
pipe
P
readable
P
ready
P
resume
P
timeout
P
unpipe
Search the reference...
/
Build
Docs
Reference
Guides
Blog
Discord
/
node:net
/
SocketEventMap
P
close
P
connect
P
connectionAttempt
P
connectionAttemptFailed
P
connectionAttemptTimeout
P
data
P
drain
P
end
P
error
P
finish
P
lookup
P
pause
P
pipe
P
readable
P
ready
P
resume
P
timeout
P
unpipe
interface
net.SocketEventMap
interface
SocketEventMap
close
:
[
hadError
:
boolean
]
connect
:
[
]
connectionAttempt
:
[
ip
:
string
,
port
:
number
,
family
:
number
]
connectionAttemptFailed
:
[
ip
:
string
,
port
:
number
,
family
:
number
,
error
:
Error
]
connectionAttemptTimeout
:
[
ip
:
string
,
port
:
number
,
family
:
number
]
data
:
[
data
:
string
|
NonSharedBuffer
]
drain
:
[
]
end
:
[
]
error
:
[
err
:
Error
]
finish
:
[
]
lookup
:
[
err
:
null
|
Error
,
address
:
string
,
family
:
null
|
number
,
host
:
string
]
pause
:
[
]
pipe
:
[
src
:
Readable
]
readable
:
[
]
ready
:
[
]
resume
:
[
]
timeout
:
[
]
unpipe
:
[
src
:
Readable
]