wsmanager

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WSManager

type WSManager struct {
	*websocket.Conn
}

WSManager adds some convenience methods on top of a Gorilla websocket connection

func (*WSManager) SendClosureMsg

func (m *WSManager) SendClosureMsg(code int) error

func (*WSManager) SendFailure

func (m *WSManager) SendFailure(msg string, code int) error

func (*WSManager) SendFailureISE

func (m *WSManager) SendFailureISE() error

func (*WSManager) SendSuccess

func (m *WSManager) SendSuccess(msg string) error

func (*WSManager) SendTextMsg

func (m *WSManager) SendTextMsg(msg string) error

func (*WSManager) Write

func (m *WSManager) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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