Skip to content

Commit

Permalink
doc: optimize the doc about Unix abstract socket
Browse files Browse the repository at this point in the history
  • Loading branch information
theanarkh committed Mar 11, 2024
1 parent 1263bb6 commit 182badb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/api/net.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ socket outside of these abstractions, the user will need to remove it. The same
applies when a Node.js API creates a Unix domain socket but the program then
crashes. In short, a Unix domain socket will be visible in the file system and
will persist until unlinked. On Linux, You can use Unix abstract socket by adding
`\0` to the beginning of the path, such as `\0abstract`. The path to the Unix
abstract socket is not visible in the file system and it will disappear automatically
when all open references to the socket are closed.
`\0` to the beginning of the path, such as `\0abstract`(Only available in
Node.js >= v20.8.0). The path to the Unix abstract socket is not visible in the
file system and it will disappear automatically when all open references to the
socket are closed.

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

0 comments on commit 182badb

Please sign in to comment.