wsnet

package
v0.0.0-...-b6b8bdf Latest Latest
Warning

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

Go to latest
Published: May 2, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MsgTypeString = "string"
	MsgTypeBinary = "bin"
)

Variables

This section is empty.

Functions

func NewWsNetChannel

func NewWsNetChannel(conn *websocket.Conn,
	msgProcessedChannelSize int,
	msgUnprocessedChannelSize int,
	heartTickMs int,
) *wsNetChannel

Types

type WebsocketServer

type WebsocketServer struct {
	// 启动条件
	gioc.IBeanCondition
	gioc.IConfigBase
	// contains filtered or unexported fields
}

* 自动网络配置

func NewWebsocketServer

func NewWebsocketServer(cfgBase, ctlGroup string, encoder gproto.IEncoder, decoder gproto.IDecoder) *WebsocketServer

func (*WebsocketServer) BeanStart

func (this *WebsocketServer) BeanStart()

启动网络

func (*WebsocketServer) BeanStop

func (this *WebsocketServer) BeanStop()

func (*WebsocketServer) GetEventRoute

func (this *WebsocketServer) GetEventRoute() gproto.IRoute

type WsNetSystem

type WsNetSystem struct {
	// contains filtered or unexported fields
}

func NewWsNetSystem

func NewWsNetSystem(host string, entry string, msgType string, config *gnet.NetConfig, handler *http.ServeMux) *WsNetSystem

func (*WsNetSystem) GoStart

func (this *WsNetSystem) GoStart() *WsNetSystem

Jump to

Keyboard shortcuts

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