server

package
v0.3.31-hotfix Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientHandler

func ClientHandler(ws *websocket.Conn)

func InitStatsMonitoring

func InitStatsMonitoring()

Start stats monitoring

func PrintStats

func PrintStats()

PrintStats periodically logs messaging statistics

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client implements ClientInterface

func (*Client) ClientInfo

func (c *Client) ClientInfo() string

func (*Client) CloseClient

func (c *Client) CloseClient()

func (*Client) GetSubscriptions

func (c *Client) GetSubscriptions() map[string][]nostr.Filter

func (*Client) GetWS

func (c *Client) GetWS() *websocket.Conn

func (*Client) SendMessage

func (c *Client) SendMessage(msg interface{})

Implement `ClientInterface` methods

Directories

Path Synopsis
db

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL