ws_handle

package
v0.0.0-...-0b3c072 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebSocketBroker

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

func New

func New() WebSocketBroker

func (*WebSocketBroker) Add

func (broker *WebSocketBroker) Add(conn *websocket.Conn) error

func (*WebSocketBroker) Close

func (broker *WebSocketBroker) Close() error

func (*WebSocketBroker) RegisterHandle

func (broker *WebSocketBroker) RegisterHandle(handler models.MessageHandler, topics ...string)

func (*WebSocketBroker) RemoveHandler

func (broker *WebSocketBroker) RemoveHandler(topic string, handlerName string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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