ws

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 3 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 struct {
	SocketId string
	// contains filtered or unexported fields
}

func InitConn

func InitConn(wsConn *websocket.Conn) (conn *Conn, err error)

func (*Conn) Close

func (c *Conn) Close()

func (*Conn) ReadMessage

func (c *Conn) ReadMessage() (data []byte, err error)

func (*Conn) WriteJson

func (c *Conn) WriteJson(data interface{}) (err error)

func (*Conn) WriteMessage

func (c *Conn) WriteMessage(data []byte) (err error)

Jump to

Keyboard shortcuts

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