response

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendClosed

func SendClosed(client nostr.ClientInterface, subID string, message string)

SendClosed sends a "CLOSED" response to the client

func SendCount added in v0.6.0

func SendCount(client nostr.ClientInterface, subID string, count int, approximate bool)

SendCount sends a NIP-45 COUNT response to the client. When approximate is true, the relay signals that the count may not be exact (e.g. capped at countHardCap or the result of a multi-filter request).

func SendNotice

func SendNotice(client nostr.ClientInterface, message string)

SendNotice sends a NIP-01 ["NOTICE", <message>] to the client

func SendOK

func SendOK(client nostr.ClientInterface, eventID string, status bool, message string)

SendOK sends an "OK" response to the client

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL