From 1d12363af1ccf439383b49728255c838848b6124 Mon Sep 17 00:00:00 2001 From: Wilson Silva Date: Fri, 15 Mar 2024 19:42:05 +0000 Subject: [PATCH] Document a common issue --- README.md | 3 +++ docs/getting-started/overview.md | 3 +++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index b78f963..1519e0e 100644 --- a/README.md +++ b/README.md @@ -118,6 +118,9 @@ end client.on :close do |code, reason| # You may attempt to reconnect to the relay here end + +# This line keeps the background client from exiting immediately. +gets ``` ## 📚 Documentation diff --git a/docs/getting-started/overview.md b/docs/getting-started/overview.md index bc3a15a..6f4124d 100644 --- a/docs/getting-started/overview.md +++ b/docs/getting-started/overview.md @@ -165,6 +165,9 @@ end client.on :close do |code, reason| # You may attempt to reconnect to the relay here end + +# This line keeps the background client from exiting immediately. +gets ``` Beyond what's covered here, the Nostr protocol and this gem boast a wealth of additional functionalities. For an