websocket

package
v0.0.0-...-cee4bc5 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker interface {
	RegisterClient(id uuid.UUID, c broker.Client)
	Unregister(id uuid.UUID) error
}

type Server

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

func New

func New(
	addr string,
	broker Broker,
	logger *slog.Logger,
) *Server

func (*Server) Close

func (s *Server) Close() error

func (*Server) Listen

func (s *Server) Listen() error

Jump to

Keyboard shortcuts

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