Skip to content

Commit 89aef90

Browse files
committed
In README, clarify that DDP.connect callback is called on each reconnect.
1 parent e5eaef1 commit 89aef90

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.markdown

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ var ddpclient = new DDPClient({
3535
* Connect to the Meteor Server
3636
*/
3737
ddpclient.connect(function(error) {
38+
// If auto_reconnect is true, this callback will be invoked each time
39+
// a server connection is re-established
3840
if (error) {
3941
console.log('DDP connection error!');
4042
return;
@@ -112,7 +114,7 @@ ddpclient.on('message', function (msg) {
112114
* Close the ddp connection. This will close the socket, removing it
113115
* from the event-loop, allowing your application to terminate gracefully
114116
*/
115-
ddpclient.close()
117+
ddpclient.close();
116118

117119
/*
118120
* If you need to do something specific on close or errors.

0 commit comments

Comments
 (0)