wsConn

package
v0.0.0-...-92fbe94 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int32ToBytes

func Int32ToBytes(i int32) []byte

Types

type Connection

type Connection struct {
	IsExist chan int
	// contains filtered or unexported fields
}

func Init

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

func (*Connection) Close

func (conn *Connection) Close()

func (*Connection) WriteBinaryMessage

func (conn *Connection) WriteBinaryMessage(data []byte) (err error)

func (*Connection) WriteTextMessage

func (conn *Connection) WriteTextMessage(data []byte) (err error)

Jump to

Keyboard shortcuts

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