websocket

package
v0.0.0-...-dccbea2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: LGPL-2.1 Imports: 2 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 {
	Conn     *io.ReadWriter
	Encoding string
}

Websocket ...

func NewWebsocket

func NewWebsocket(conn io.ReadWriter) (*Websocket, error)

NewWebsocket ...

func (*Websocket) ReadMessage

func (w *Websocket) ReadMessage() (op ws.OpCode, p []byte, err error)

ReadMessage ...

func (*Websocket) WriteMessage

func (w *Websocket) WriteMessage(op ws.OpCode, data []byte) error

WriteMessage ...

Jump to

Keyboard shortcuts

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