conn

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WsConn

type WsConn struct {
	*user.UserLite
	// contains filtered or unexported fields
}

func NewWsConn

func NewWsConn(conn *websocket.Conn) *WsConn

func (*WsConn) Close

func (ws *WsConn) Close(userId string) error

func (*WsConn) GetUser

func (ws *WsConn) GetUser() string

func (*WsConn) SendMessage

func (ws *WsConn) SendMessage(msg *message.Message) (int, error)

func (*WsConn) SetReadDeadline

func (ws *WsConn) SetReadDeadline()

func (*WsConn) Start

func (ws *WsConn) Start()

Jump to

Keyboard shortcuts

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