ws

package
Version: v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 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 added in v1.0.17

type Conn struct {
	SocketId string
	// contains filtered or unexported fields
}

func InitConn added in v1.0.17

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

func (*Conn) Close added in v1.0.17

func (c *Conn) Close()

func (*Conn) ReadMessage added in v1.0.17

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

func (*Conn) WriteJson added in v1.0.17

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

func (*Conn) WriteMessage added in v1.0.17

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