File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -62,13 +62,13 @@ it passing the name of the abstract socket to bind to and listen, it follows
62
62
the API used for normal Unix domain sockets. NOTE: you must prepend the path with
63
63
the NULL byte ('\0') to indicate it's an abstract socket.
64
64
65
- Throws an exception if the ` socket(2) ` system call fails.
65
+ Emits an error if the ` socket(2) ` system call fails.
66
66
67
67
### AbstractSocketServer.listen(name, [ callback]
68
68
69
69
Binds the server to the specified abstract socket name.
70
70
71
- Throws an exception if the ` bind(2) ` system call fails, or the given ` name `
71
+ Emits an error if the ` bind(2) ` system call fails, or the given ` name `
72
72
is invalid.
73
73
74
74
This function is asynchronous. When the server has been bound, 'listening' event
@@ -81,11 +81,14 @@ Creates a connection to the given `path` in the abstract domain. NOTE: you must
81
81
prepend the path with the NULL byte ('\0') to indicate it's an abstract
82
82
socket.
83
83
84
- Returns a new and connected net.Socket object.
84
+ Returns a new net.Socket object.
85
85
86
- Throws an exception if the ` socket(2) ` or ` connect(2) ` system calls fail,
86
+ Emits an error if the ` socket(2) ` or ` connect(2) ` system calls fail,
87
87
or the given ` name ` is invalid.
88
88
89
+ ## Tests
90
+
91
+ Run tests with ` npm test ` .
89
92
90
93
## Thanks
91
94
You can’t perform that action at this time.
0 commit comments