Optional
onClientConnect?: (client: string) => anyOptional
onClientDisconnect?: (client: string) => voidCallback for when a client disconnects (previously connected and the provider stops)
Optional
pool?: NostrPoolA pool of methods to use if none are passed in when creating the provider
Optional
publishMethod?: NostrPublishMethodA method for publishing events
The relays to communicate over
Optional
secret?: stringA random secret used to authorize clients to connect
Optional
signer?: ISignerOptional signer for provider identity
Optional
subscriptionMethod?: NostrSubscriptionMethodA method for subscribing to relays
The signer to use for signing events and encryption
Callback for when a client connects (receives a
connect
request)