Skip to content

Commit dd9611e

Browse files
committed
Merge pull request #703 from StreamMeDev/close-doc-update
Added documentation for close callback
2 parents 8aae0de + c3c6554 commit dd9611e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/ws.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ If `handleProtocols` is not set then the handshake is accepted regardless the va
6666

6767
If a property is empty then either an offered configuration or a default value is used.
6868

69-
### server.close()
69+
### server.close([callback])
7070

71-
Close the server and terminate all clients
71+
Close the server and terminate all clients, calls callback when done with an error if one occured.
7272

7373
### server.handleUpgrade(request, socket, upgradeHead, callback)
7474

0 commit comments

Comments
 (0)