Expose the relay in the client connection event

This commit is contained in:
Wilson Silva
2024-04-05 15:31:49 +01:00
parent 61eb0459d4
commit a0cf41bfb4
7 changed files with 30 additions and 21 deletions

View File

@@ -80,7 +80,7 @@ relay = Nostr::Relay.new(url: 'wss://nostr.wine', name: 'Wine')
client.connect(relay)
# Listen asynchronously for the connect event
client.on :connect do
client.on :connect do |relay|
# Send the event to the Relay
client.publish(text_note_event)