connection

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSender

type DataSender interface {
	Write(msgType int, msg []byte) error
	GetID() string
	Close()
}

type WebSocketConnection

type WebSocketConnection struct {
	Conn     *websocket.Conn
	CtxClose context.CancelFunc
	// contains filtered or unexported fields
}

func (*WebSocketConnection) Close added in v1.0.1

func (ws *WebSocketConnection) Close()

func (*WebSocketConnection) GetID

func (ws *WebSocketConnection) GetID() string

func (*WebSocketConnection) Write

func (ws *WebSocketConnection) Write(msgType int, msg []byte) error

Jump to

Keyboard shortcuts

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