Skip to content

Latest commit

 

History

History
57 lines (29 loc) · 1.16 KB

File metadata and controls

57 lines (29 loc) · 1.16 KB

nostr-websocket-utils v0.3.16


nostr-websocket-utils / NostrServer

Class: NostrServer

Defined in: core/nostr-server.ts:11

Represents a Nostr WebSocket server

Constructors

Constructor

new NostrServer(options): NostrWSServer

Defined in: core/nostr-server.ts:22

Creates a new Nostr WebSocket server instance

Parameters

options

NostrWSServerOptions

Server configuration options

Returns

NostrWSServer

Properties

server

private server: WebSocketServer

Defined in: core/nostr-server.ts:15

The underlying WebSocket server instance

Methods

stop()

stop(): void

Defined in: core/nostr-server.ts:98

Closes the WebSocket server

Returns

void