web

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2025 License: AGPL-3.0, AGPL-3.0-or-later Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(s *Server, sock httpx.WebSocket, channel *models.Channel) *Client

func (*Client) Send

func (c *Client) Send(e events.Event)

func (*Client) Stop

func (c *Client) Stop()

type Server

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

func NewServer

func NewServer(rt *runtime.Runtime, service Service) *Server

func (*Server) GetClient

func (s *Server) GetClient(chatID models.ChatID) *Client

func (*Server) OnDisconnect

func (s *Server) OnDisconnect(c *Client)

func (*Server) Start

func (s *Server) Start()

func (*Server) Stop

func (s *Server) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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