Optionalopts: RelayOptionsProtected_Protected_Internal subject that tracks the ready state of the relay
How many times the relay has tried to reconnect
Boolean authentication state (will be false if auth failed)
The pubkey of the authenticated user, or null if not authenticated
The authentication event sent to the relay
The response to the last AUTH message sent to the relay
The authentication challenge string from the relay
An observable that emits when underlying websocket is closed
An observable that emits when underlying websocket is closing due to unsubscribe or complete
Whether the relay is connected
Enable/disable ping functionality (default false)
The last connection error
How long to wait for an OK message from the relay (default 10s)
An observable that emits the icon URL for the relay, or the favicon.ico URL for the relay
An observable that emits the NIP-11 information document for the relay
How long to keep the connection alive after nothing is subscribed (default 30s)
An observable that emits the limitations for the relay
ProtectedlogA passive observable of all messages from the relay
A passive observable of NOTICE messages from the relay
The notices from the relay
Protected OptionalonPolicy hook for unresponsive connections
An observable that emits when underlying websocket is opened
How often to send pings in milliseconds (default 29000)
How long to wait for EOSE response in milliseconds (default 20000)
Default retry config for publish() method
How long to wait for a publish to complete (default 30s)
Whether the relay is ready for subscriptions or event publishing. setting this to false will cause all .req and .event observables to hang until the relay is ready
ProtectedreceivedProtectedreceivedA method that returns an Observable that emits when the relay should reconnect
Tracks active req() operations by subscription ID
Default reconnect config for request() method
ProtectedsocketObservable of relay status (connection, authentication, and ready state)
Default reconnect config for subscription() method
An array of supported NIPs from the NIP-11 information document
ProtectedwatchAn internal observable that is responsible for watching all messages and updating state, subscribing to it will trigger a connection to the relay
Advanced feed
Advanced search
Authenticate with the relay using a signer
Make a "cache" request to the caching server
Force close the connection
Create a COUNT observable that emits a single count response
ProtectedcustomInternal operator for creating the repeat() operator for resubscribing
ProtectedcustomInternal operator for creating the retry() operator for reconnecting to the websocket
Optionalbase: RetryConfigProtectedcustomInternal operator for creating the timeout() operator
Send an EVENT or AUTH message and return an observable of PublishResponse that completes or errors
Optionalverb: "EVENT" | "AUTH"Explore content with various filters
Get global most zapped content from last 4 hours
Get global trending content from last 24 hours
Feed directive
Feed directive v2
Get advanced feeds
Get default relays
Get filterlist
An async method that returns the NIP-11 information document for the relay
An async method that returns the NIP-11 limitations for the relay
Get notifications
An async method that returns the supported NIPs for the relay
Negentropy sync event ids with the relay and an event store
Optionalopts: NegentropySyncOptionsGet note mentions
Publishes an event to the relay and retries when relay errors or responds with auth-required ( default 3 retries )
Optionalopts: PublishOptionsGet relays
Create a REQ observable that emits events or "EOSE" or errors
Optionalopts: RelayReqOptionsMakes a single request that retires on errors and completes on EOSE
Optionalopts: RelayRequestOptionsProtectedresetGet scored content
Search content
Send a message to the relay
ProtectedstartSet ready = false and start the reconnect timer
Creates a REQ that retries when relay errors ( default 3 retries )
Optionalopts: RelayReqOptionsNegentropy sync events with the relay and an event store
Optionaldirection: SyncDirectionProtectedtimelineGet trusted users
Get user profile scored content
Get user profile scored media thumbnails
ProtectedwaitWait for authentication state, make connection and then wait for authentication if required
ProtectedwaitWait for the relay to be ready to accept connections
StaticafterA complete condition that waits for the subscription to open
StaticcompleteAn AND complete condition, that completes when all conditions are truthy
StaticcompleteAn OR complete condition, that completes when either condition is truthy
StaticcreateStatic method to create a reconnection method for each relay
StaticdefaultA default complete condition that waits for the subscription to open and then completes after a timeout
OptionalafterOpen: numberStaticfetchStatic method to fetch the NIP-11 information document for a relay
Extended relay interface for primal caching server
See
https://github.com/PrimalHQ/primal-server/blob/main/src/app_ext.jl