Skip to content

Commit 244e0ed

Browse files
randunelsaghul
authored andcommitted
Errors emitted instead of thrown.
1 parent c4a3710 commit 244e0ed

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ it passing the name of the abstract socket to bind to and listen, it follows
6262
the API used for normal Unix domain sockets. NOTE: you must prepend the path with
6363
the NULL byte ('\0') to indicate it's an abstract socket.
6464

65-
Throws an exception if the `socket(2)` system call fails.
65+
Emits an error if the `socket(2)` system call fails.
6666

6767
### AbstractSocketServer.listen(name, [callback]
6868

6969
Binds the server to the specified abstract socket name.
7070

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`
7272
is invalid.
7373

7474
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
8181
prepend the path with the NULL byte ('\0') to indicate it's an abstract
8282
socket.
8383

84-
Returns a new and connected net.Socket object.
84+
Returns a new net.Socket object.
8585

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,
8787
or the given `name` is invalid.
8888

89+
## Tests
90+
91+
Run tests with `npm test`.
8992

9093
## Thanks
9194

0 commit comments

Comments
 (0)