Skip to content

Commit 1a7d5d0

Browse files
committed
Added documentation for ddp.close()
1 parent dbc284f commit 1a7d5d0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.markdown

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ ddpclient.on('message', function (msg) {
108108
console.log("ddp message: " + msg);
109109
});
110110

111+
/*
112+
* Close the ddp connection. This will close the socket, removing it
113+
* from the event-loop, allowing your application to terminate gracefully
114+
*/
115+
ddpclient.close()
116+
111117
/*
112118
* If you need to do something specific on close or errors.
113119
* You can also disable auto_reconnect and

0 commit comments

Comments
 (0)