socket

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebSocket

type WebSocket struct {
	Pattern string
	Address string
	// contains filtered or unexported fields
}

func NewWebSocket

func NewWebSocket() *WebSocket

func (*WebSocket) Handler

func (w *WebSocket) Handler(ws *websocket.Conn)

func (*WebSocket) Init

func (w *WebSocket) Init(pattern string, address string) *WebSocket

func (*WebSocket) SendMessage

func (w *WebSocket) SendMessage(message any) error

func (*WebSocket) Server

func (w *WebSocket) Server() error

Jump to

Keyboard shortcuts

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