Client context.

Constructors

Properties

Accessors

Methods

Constructors

Properties

client: Client

Client instance, usually a WebSocket

id: string

Client ID, a random UUID. Also used as the AUTH challenge.

ip: undefined | string

IP address of the client.

pubkey: undefined | string

Public key of the client. Will be set after the client sends an AUTH message.

subscriptions: LRUCache<string, Filter[], unknown>

Subscriptions of the client. The key is the subscription ID. The value is the filters.

Accessors

Methods