diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-07-19 16:29:32 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-07-19 16:29:32 +0200 |
commit | c66032630f0e4fc3f4b59413a12f9ab35be958be (patch) | |
tree | 267ad62e364f141a6c40ac33e8c03794befdd2ff /README.md | |
parent | 12e45f6e461696131b8950245ac26f1dc7fb5573 (diff) | |
download | App-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.md | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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(). |