From c66032630f0e4fc3f4b59413a12f9ab35be958be Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 19 Jul 2018 16:29:32 +0200 Subject: Reconnect when connection is lost Signed-off-by: Florian Pritz --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'README.md') 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 + +### 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(). -- cgit v1.2.3-24-g4f1b