Global Feed Post Login
Replying to Avatar DanConwayDev

I have a CLI (ngit) that is usually used to read but sometimes used to write events.

I'm trying add support for relays that require AUTH to read.

If nip46 a bunker url is known and have previously been used to successfully sign event, I would like to opportunistically use it to respond to AUTH events.

I don't want to await the return of Nip46Signer:new() before sending read requests and I'd like a shorter timeout (or the connection attempts to be stopped when the client falls out of scope)

so that my CLI can close when other operations are complete.

Later, if the CLI needs to sign user generated events, it will attempt to connect to the remote signer again (if not already connected) and this time would need a longer timeout for connecting to the remote helper as provided through Nip46Signer:new() .

Avatar
DanConwayDev 1y ago

perfect thanks

Reply to this note

Please Login to reply.

Discussion

No replies yet.