Skip to content

Commit 182badb

Browse files
committed
doc: optimize the doc about Unix abstract socket
1 parent 1263bb6 commit 182badb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/api/net.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ socket outside of these abstractions, the user will need to remove it. The same
3939
applies when a Node.js API creates a Unix domain socket but the program then
4040
crashes. In short, a Unix domain socket will be visible in the file system and
4141
will persist until unlinked. On Linux, You can use Unix abstract socket by adding
42-
`\0` to the beginning of the path, such as `\0abstract`. The path to the Unix
43-
abstract socket is not visible in the file system and it will disappear automatically
44-
when all open references to the socket are closed.
42+
`\0` to the beginning of the path, such as `\0abstract`(Only available in
43+
Node.js >= v20.8.0). The path to the Unix abstract socket is not visible in the
44+
file system and it will disappear automatically when all open references to the
45+
socket are closed.
4546

4647
On Windows, the local domain is implemented using a named pipe. The path _must_
4748
refer to an entry in `\\?\pipe\` or `\\.\pipe\`. Any characters are permitted,

0 commit comments

Comments
 (0)