ws

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 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

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

func InitConnection

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

func (*Connection) Close

func (this *Connection) Close()

func (*Connection) ReadMessage

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

func (*Connection) WriteJson

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

func (*Connection) WriteMessage

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