summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-07-19 16:29:32 +0200
committerFlorian Pritz <bluewind@xinu.at>2018-07-19 16:29:32 +0200
commitc66032630f0e4fc3f4b59413a12f9ab35be958be (patch)
tree267ad62e364f141a6c40ac33e8c03794befdd2ff /README.md
parent12e45f6e461696131b8950245ac26f1dc7fb5573 (diff)
downloadApp-ImapNotify-c66032630f0e4fc3f4b59413a12f9ab35be958be.tar.gz
App-ImapNotify-c66032630f0e4fc3f4b59413a12f9ab35be958be.tar.xz
Reconnect when connection is lost
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'README.md')
-rw-r--r--README.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/README.md b/README.md
index 6de1231..eb939d1 100644
--- a/README.md
+++ b/README.md
@@ -22,3 +22,20 @@ it under the same terms as Perl itself.
# AUTHOR
Florian Pritz <bluewind@xinu.at>
+
+### loop\_reconnect
+
+ $app->loop_reconnect();
+
+Same as loop(), but automatcally calls loop() again if the connection is lost.
+
+### loop
+
+ $app->loop();
+
+Open a connection and wait for NOTIFY notifications. When a NOTIFY notification
+arrives, show a notification to the user.
+
+This method throws an exception when the connection to the server is lost. If
+you want to continue waiting for new notifications, you may call this method
+again. Also look at loop\_reconnect().