websockets

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(opts ...ServerOption) *Server

func (*Server) Close

func (s *Server) Close() error

func (*Server) Register

func (s *Server) Register(name string, handler *commons.CommHandler)

func (*Server) Serve

func (s *Server) Serve(addr string) error

type ServerOption

type ServerOption func(*Server)

func WithLogger

func WithLogger(logger *slog.Logger) ServerOption

func WithMaxConnections

func WithMaxConnections(n int) ServerOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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