Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/lophus/mod.ts>Relay

Fully-modular TypeScript implementation of the Nostr protocol, oriented to web standards and edge environments
Latest
import { Relay } from "https://deno.land/x/lophus@0.0.13/mod.ts";

A class that represents a remote Nostr Relay.

Constructors

new
Relay(init: RelayUrl | RelayInit, options?: RelayOptions)

Properties

readonly
config: Readonly<RelayConfig>

Methods

publish<K extends EventKind>(event: NostrEvent<K>): Promise<void>

Publish an event to the relay and wait for a response.