Skip to content

Latest commit

 

History

History
61 lines (31 loc) · 1.08 KB

NostrServer.md

File metadata and controls

61 lines (31 loc) · 1.08 KB

nostr-websocket-utils v0.3.0


nostr-websocket-utils / NostrServer

Class: NostrServer

Represents a Nostr WebSocket server

Constructors

new NostrServer()

new NostrServer(options): NostrServer

Creates a new Nostr WebSocket server instance

Parameters

options

NostrWSServerOptions

Server configuration options

Returns

NostrServer

Defined in

core/nostr-server.ts:22

Properties

server

private server: WebSocketServer

The underlying WebSocket server instance

Defined in

core/nostr-server.ts:15

Methods

stop()

stop(): void

Closes the WebSocket server

Returns

void

Defined in

core/nostr-server.ts:97