ws

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 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 Connection added in v1.0.2

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

func InitConnection added in v1.0.2

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

func (*Connection) Close added in v1.0.2

func (this *Connection) Close()

func (*Connection) ReadMessage added in v1.0.2

func (this *Connection) ReadMessage() (data []byte, err error)

func (*Connection) WriteJson added in v1.0.2

func (this *Connection) WriteJson(data interface{}) (err error)

func (*Connection) WriteMessage added in v1.0.2

func (this *Connection) WriteMessage(data []byte) (err error)

Jump to

Keyboard shortcuts

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