messageconn

package
v0.0.0-...-8667f16 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn interface {
	ReadMessage() (msg []byte, err error)
	WriteMessage(msg []byte) error
	Close() error
}

Conn is a message-based connection interface.

func NewWSConn

func NewWSConn(conn *websocket.Conn) Conn

type WSConn

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

func (*WSConn) Close

func (t *WSConn) Close() error

func (*WSConn) ReadMessage

func (t *WSConn) ReadMessage() ([]byte, error)

func (*WSConn) WriteMessage

func (t *WSConn) WriteMessage(p []byte) error

Jump to

Keyboard shortcuts

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