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

x/lophus/core/clients.ts>Client

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

A class that represents a remote Nostr client.

Constructors

new
Client(ws: WebSocket, opts?: ClientOptions)

Properties

readonly
subscriptions: Map<SubscriptionId, WritableStream<NostrEvent>>

Writable interface for the subscriptions.

The WebSocket connection to the client.